IChannelListener 接口
定义
定义必须由通道侦听器实现来接受通道的接口。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。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) |