IChannelListener 介面

定義

定義通道接聽程式 (Listener) 必須實作以接受通道的介面。Defines the interface that must be implemented by a channel listener to accept channels.

public interface class IChannelListener : System::ServiceModel::ICommunicationObject
public interface IChannelListener : System.ServiceModel.ICommunicationObject
type IChannelListener = interface
    interface ICommunicationObject
Public Interface IChannelListener
Implements ICommunicationObject
衍生
實作

備註

IChannelListener 介面表示通道接聽程式的基底介面。The IChannelListener interface represents the base interface for channel listeners.

通道接聽程式和其關聯的通道通常是由可接收用戶端啟始之通訊的服務所使用。Channel listeners and their associated channels are generally used by services that receive communications initiated by clients. 相較之下,實作 IChannelFactory 介面的通道處理站會提供用來建立通道的機制,透過此機制可啟始與服務之間的通訊。Channel factories that implement the IChannelFactory interface, by contrast, provide the mechanisms used to create the channels through which communication with a service is initiated.

屬性

State

取得通訊導向物件的目前狀態。Gets the current state of the communication-oriented object.

(繼承來源 ICommunicationObject)
Uri

取得 URI,處理站所產生的接聽程式會在此 URI 上接聽。Gets the URI on which the listeners that are generated by the factory listen.

方法

Abort()

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

(繼承來源 ICommunicationObject)
BeginClose(AsyncCallback, Object)

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

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

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

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

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

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

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

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

開始等候通道抵達的非同步作業,此作業必須在指定的時間間隔內完成。Begins an asynchronous operation to wait for a channel to arrive that must be completed within a specified interval of time.

Close()

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

(繼承來源 ICommunicationObject)
Close(TimeSpan)

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

(繼承來源 ICommunicationObject)
EndClose(IAsyncResult)

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

(繼承來源 ICommunicationObject)
EndOpen(IAsyncResult)

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

(繼承來源 ICommunicationObject)
EndWaitForChannel(IAsyncResult)

完成等候通道抵達的非同步作業。Completes an asynchronous operation to wait for channels to arrive.

GetProperty<T>()

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

Open()

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

(繼承來源 ICommunicationObject)
Open(TimeSpan)

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

(繼承來源 ICommunicationObject)
WaitForChannel(TimeSpan)

等候通道抵達。Waits for a channel to arrive.

事件

Closed

當通訊物件從關閉中狀態轉換為已關閉狀態完成時發生。Occurs when the communication object completes its transition from the closing state into the closed state.

(繼承來源 ICommunicationObject)
Closing

當通訊物件第一次進入關閉中狀態時發生。Occurs when the communication object first enters the closing state.

(繼承來源 ICommunicationObject)
Faulted

當通訊物件第一次進入錯誤狀態時發生。Occurs when the communication object first enters the faulted state.

(繼承來源 ICommunicationObject)
Opened

當通訊物件從開啟中狀態轉換為已開啟狀態結束時發生。Occurs when the communication object completes its transition from the opening state into the opened state.

(繼承來源 ICommunicationObject)
Opening

當通訊物件第一次進入開啟中狀態時發生。Occurs when the communication object first enters the opening state.

(繼承來源 ICommunicationObject)

適用於