ChannelListenerBase<TChannel> 類別

定義

提供服務上通道接聽程式的通用基底實作,以接受用戶端處理站所產生的通道。Provides a common base implementation for channel listeners on a service to accept channels produced by the client factories.

generic <typename TChannel>
 where TChannel : class, IChannelpublic ref class ChannelListenerBase abstract : System::ServiceModel::Channels::ChannelListenerBase, System::ServiceModel::Channels::IChannelListener<TChannel>
public abstract class ChannelListenerBase<TChannel> : System.ServiceModel.Channels.ChannelListenerBase, System.ServiceModel.Channels.IChannelListener<TChannel> where TChannel : class, IChannel
type ChannelListenerBase<'Channel (requires 'Channel : null and 'Channel :> IChannel)> = class
    inherit ChannelListenerBase
    interface IChannelListener<'Channel (requires 'Channel : null and 'Channel :> IChannel)>
    interface IChannelListener
    interface ICommunicationObject
Public MustInherit Class ChannelListenerBase(Of TChannel)
Inherits ChannelListenerBase
Implements IChannelListener(Of TChannel)

類型參數

TChannel

通道接聽程式接受的通道型別。The type of channel the channel listeners accept.

繼承
實作

備註

服務上的通道接聽程式會等候及接受用戶端上處理站所建立的通道。The channel listeners on a service wait for and then accept the channels created by factories on the client. 一旦用戶端與服務之間建立了通道連線之後,就可以交換訊息來進行通訊。Once the channel connection is established between client and service, they can communicate by exchanging messages

建構函式

ChannelListenerBase<TChannel>()

初始化 ChannelListenerBase<TChannel> 類別的新執行個體。Initializes a new instance of the ChannelListenerBase<TChannel> class.

ChannelListenerBase<TChannel>(IDefaultCommunicationTimeouts)

使用指定的預設通訊逾時,初始化 ChannelListenerBase<TChannel> 類別的新執行個體。Initializes a new instance of the ChannelListenerBase<TChannel> class with specified default communication timeouts.

屬性

DefaultCloseTimeout

取得針對要完成之關閉作業所提供的預設時間間隔。Gets the default interval of time provided for a close operation to complete.

(繼承來源 ChannelListenerBase)
DefaultOpenTimeout

取得針對要完成之開啟作業所提供的預設時間間隔。Gets the default interval of time provided for an open operation to complete.

(繼承來源 ChannelListenerBase)
DefaultReceiveTimeout

取得針對要完成之接收作業所提供的預設時間間隔。Gets the default interval of time provided for a receive operation to complete.

(繼承來源 ChannelListenerBase)
DefaultSendTimeout

取得針對要完成之傳送作業所提供的預設時間間隔。Gets the default interval of time provided for a send operation to complete.

(繼承來源 ChannelListenerBase)
IsDisposed

取得值,這個值表示是否已經處置通訊物件。Gets a value that indicates whether the communication object has been disposed.

(繼承來源 CommunicationObject)
State

取得值,這個值表示通訊物件目前的狀態。Gets a value that indicates the current state of the communication object.

(繼承來源 CommunicationObject)
ThisLock

取得會在狀態轉換期間保護類別執行個體的互斥鎖定。Gets the mutually exclusive lock that protects the class instance during a state transition.

(繼承來源 CommunicationObject)
Uri

在衍生類別 (Derived Class) 內實作時,通道接聽程式接聽傳入通道所在的 URI。When implemented in derived class, gets the URI on which the channel listener listens for an incoming channel.

(繼承來源 ChannelListenerBase)

方法

Abort()

導致通訊物件立即從目前的狀態轉換為關閉狀態。Causes a communication object to transition immediately from its current state into the closing state.

(繼承來源 CommunicationObject)
AcceptChannel()

接受目前通道接聽程式所指定之型別的通道。Accepts a channel of the type specified by the current channel listener.

AcceptChannel(TimeSpan)

在指定的時間間隔內,接受目前通道接聽程式所指定之型別的通道。Accepts a channel of the type specified by the current channel listener within a specified interval of time.

BeginAcceptChannel(AsyncCallback, Object)

開始非同步作業,以便接受目前通道接聽程式所指定之型別的通道。Begins an asynchronous operation to accept a channel of the type specified by the current channel listener.

BeginAcceptChannel(TimeSpan, AsyncCallback, Object)

在衍生類別 (Derived Class) 內實作時,開始非同步作業,以便在指定的時間間隔內接受目前通道接聽程式所指定之型別的通道。When implemented in a derived class, begins an asynchronous operation to accept a channel of the type specified by the current channel listener within a specified interval of time.

BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

(繼承來源 CommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。Begins an asynchronous operation to close a communication object with a specified timeout.

(繼承來源 CommunicationObject)
BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟通訊物件。Begins an asynchronous operation to open a communication object.

(繼承來源 CommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業,開啟有已指定時間間隔的通訊物件。Begins an asynchronous operation to open a communication object within a specified interval of time.

(繼承來源 CommunicationObject)
BeginWaitForChannel(TimeSpan, AsyncCallback, Object)

在衍生類別內實作時,開始等候通道抵達的非同步作業。When implemented in a derived class, begins an asynchronous operation to wait for a channel to arrive.

(繼承來源 ChannelListenerBase)
Close()

導致通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state.

(繼承來源 CommunicationObject)
Close(TimeSpan)

在指定時間間隔內,讓通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state within a specified interval of time.

(繼承來源 CommunicationObject)
EndAcceptChannel(IAsyncResult)

在衍生類別內實作時,完成接受通道的非同步作業。When implemented in a derived class, completes an asynchronous operation to accept a channel.

EndClose(IAsyncResult)

完成非同步作業以關閉通訊物件。Completes an asynchronous operation to close a communication object.

(繼承來源 CommunicationObject)
EndOpen(IAsyncResult)

完成非同步作業以開啟通訊物件。Completes an asynchronous operation to open a communication object.

(繼承來源 CommunicationObject)
EndWaitForChannel(IAsyncResult)

在衍生類別內實作時,完成等候通道抵達的非同步作業。When implemented in a derived class, completes an asynchronous operation to wait for channels to arrive.

(繼承來源 ChannelListenerBase)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Fault()

導致通訊物件從目前的狀態轉換為錯誤狀態。Causes a communication object to transition from its current state into the faulted state.

(繼承來源 CommunicationObject)
GetCommunicationObjectType()

取得通訊物件的型別。Gets the type of communication object.

(繼承來源 CommunicationObject)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetProperty<T>()

從通道堆疊的適當層次中,傳回要求的型別物件 (如果有)。Returns a typed object requested, if present, from the appropriate layer in the channel stack.

(繼承來源 ChannelListenerBase)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnAbort()

在通訊物件上插入處理 (當它因為叫用同步中止作業而轉換到關閉狀態之後)。Inserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous abort operation.

(繼承來源 CommunicationObject)
OnAcceptChannel(TimeSpan)

在衍生類別內實作時,提供接受通道時的擴充點。When implemented in a derived class, provides an extensibility point when accepting a channel.

OnBeginAcceptChannel(TimeSpan, AsyncCallback, Object)

在衍生類別內實作時,提供開始接受通道時的非同步擴充點。When implemented in a derived class, provides an asynchronous extensibility point when beginning to accept a channel.

OnBeginClose(TimeSpan, AsyncCallback, Object)

在通訊物件因為叫用非同步關閉作業而轉換到關閉狀態後,插入處理。Inserts processing after a communication object transitions to the closing state due to the invocation of an asynchronous close operation.

(繼承來源 CommunicationObject)
OnBeginOpen(TimeSpan, AsyncCallback, Object)

在通訊物件上插入處理 (當它因為叫用非同步開啟作業而轉換到開啟狀態之後)。Inserts processing on a communication object after it transitions to the opening state due to the invocation of an asynchronous open operation.

(繼承來源 CommunicationObject)
OnBeginWaitForChannel(TimeSpan, AsyncCallback, Object)

在衍生類別內實作時,提供開始等候通道抵達時的擴充點。When implemented in a derived class, provides a point of extensibility when starting to wait for a channel to arrive.

(繼承來源 ChannelListenerBase)
OnClose(TimeSpan)

在通訊物件上插入處理 (當它因為叫用同步關閉作業而轉換到關閉狀態之後)。Inserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous close operation.

(繼承來源 CommunicationObject)
OnClosed()

在將通訊物件轉換為關閉狀態期間會叫用。Invoked during the transition of a communication object into the closing state.

(繼承來源 CommunicationObject)
OnClosing()

在將通訊物件轉換為關閉狀態期間會叫用。Invoked during the transition of a communication object into the closing state.

(繼承來源 CommunicationObject)
OnEndAcceptChannel(IAsyncResult)

在衍生類別內實作時,提供完成接受通道時的非同步擴充點。When implemented in a derived class, provides an asynchronous extensibility point when completing the acceptance a channel.

OnEndClose(IAsyncResult)

在關閉通訊物件時完成非同步作業。Completes an asynchronous operation on the close of a communication object.

(繼承來源 CommunicationObject)
OnEndOpen(IAsyncResult)

在開啟通訊物件時完成非同步作業。Completes an asynchronous operation on the open of a communication object.

(繼承來源 CommunicationObject)
OnEndWaitForChannel(IAsyncResult)

在衍生類別內實作時,提供結束等候通道抵達時的擴充點。When implemented in a derived class, provides a point of extensibility when ending the waiting for a channel to arrive.

(繼承來源 ChannelListenerBase)
OnFaulted()

在通訊物件上插入處理 (當它因為叫用同步錯誤作業而轉換到錯誤狀態之後)。Inserts processing on a communication object after it transitions to the faulted state due to the invocation of a synchronous fault operation.

(繼承來源 CommunicationObject)
OnOpen(TimeSpan)

在通訊物件上插入處理 (當它轉換到開啟狀態之後),此作業必須在指定的時間間隔內完成。Inserts processing on a communication object after it transitions into the opening state which must complete within a specified interval of time.

(繼承來源 CommunicationObject)
OnOpened()

在將通訊物件轉換至已開啟狀態期間會叫用。Invoked during the transition of a communication object into the opened state.

(繼承來源 CommunicationObject)
OnOpening()

在將通訊物件轉換至開啟狀態期間會叫用。Invoked during the transition of a communication object into the opening state.

(繼承來源 CommunicationObject)
OnWaitForChannel(TimeSpan)

在衍生類別內覆寫時,提供等候通道抵達時的擴充點。When overridden in a derived class, provides a point of extensibility when waiting for a channel to arrive.

(繼承來源 ChannelListenerBase)
Open()

導致通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state.

(繼承來源 CommunicationObject)
Open(TimeSpan)

在指定時間間隔內,讓通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state within a specified interval of time.

(繼承來源 CommunicationObject)
ThrowIfDisposed()

如果已處置通訊物件,則會擲回例外狀況。Throws an exception if the communication object is disposed.

(繼承來源 CommunicationObject)
ThrowIfDisposedOrImmutable()

如果通訊物件的 State 屬性並未設定為 Created 狀態,就會擲回例外狀況。Throws an exception if the communication object the State property is not set to the Created state.

(繼承來源 CommunicationObject)
ThrowIfDisposedOrNotOpen()

如果通訊物件不是處於 Opened 狀態,就會擲回例外狀況。Throws an exception if the communication object is not in the Opened state.

(繼承來源 CommunicationObject)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
WaitForChannel(TimeSpan)

在衍生類別內實作時,等候通道抵達。When implemented in a derived class, waits for a channel to arrive.

(繼承來源 ChannelListenerBase)

事件

Closed

當通訊物件轉換至已關閉狀態時發生。Occurs when a communication object transitions into the closed state.

(繼承來源 CommunicationObject)
Closing

當通訊物件轉換至關閉狀態時就會發生。Occurs when a communication object transitions into the closing state.

(繼承來源 CommunicationObject)
Faulted

當通訊物件轉換至錯誤狀態時發生。Occurs when a communication object transitions into the faulted state.

(繼承來源 CommunicationObject)
Opened

當通訊物件轉換至已開啟狀態時發生。Occurs when a communication object transitions into the opened state.

(繼承來源 CommunicationObject)
Opening

當通訊物件轉換至開啟狀態時發生。Occurs when a communication object transitions into the opening state.

(繼承來源 CommunicationObject)

明確介面實作

IDefaultCommunicationTimeouts.CloseTimeout

取得通訊物件叫用之關閉方法逾時前所經過的時間間隔。Gets the interval of time after which the close method, invoked by a communication object, times out.

(繼承來源 ChannelManagerBase)
IDefaultCommunicationTimeouts.OpenTimeout

取得通訊物件叫用之開啟方法逾時前所經過的時間間隔。Gets the interval of time after which the open method, invoked by a communication object, times out.

(繼承來源 ChannelManagerBase)
IDefaultCommunicationTimeouts.ReceiveTimeout

取得通訊物件叫用之接收方法逾時前所經過的時間間隔。Gets the interval of time after which the receive method, invoked by a communication object, times out.

(繼承來源 ChannelManagerBase)
IDefaultCommunicationTimeouts.SendTimeout

取得通訊物件叫用之傳送方法逾時前所經過的時間間隔。Gets the interval of time after which the send method, invoked by a communication object, times out.

(繼承來源 ChannelManagerBase)

適用於