IAsyncInputChannel 接口

定义

public interface class IAsyncInputChannel : System::ServiceModel::Channels::IInputChannel, System::ServiceModel::IAsyncCommunicationObject
public interface IAsyncInputChannel : System.ServiceModel.Channels.IInputChannel, System.ServiceModel.IAsyncCommunicationObject
type IAsyncInputChannel = interface
    interface IInputChannel
    interface IChannel
    interface ICommunicationObject
    interface IAsyncCommunicationObject
Public Interface IAsyncInputChannel
Implements IAsyncCommunicationObject, IInputChannel
实现

属性

LocalAddress

获取输入通道接收消息的地址。

(继承自 IInputChannel)
State

获取面向通信的对象的当前状态。

(继承自 ICommunicationObject)

方法

Abort()

使通信对象立即从其当前状态转换到关闭状态。

(继承自 ICommunicationObject)
BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。

(继承自 ICommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时内关闭通信对象。

(继承自 ICommunicationObject)
BeginOpen(AsyncCallback, Object)

开始一个异步操作以打开通信对象。

(继承自 ICommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。

(继承自 ICommunicationObject)
BeginReceive(AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有关联的状态对象。

(继承自 IInputChannel)
BeginReceive(TimeSpan, AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有指定的超时值和状态对象与之关联。

(继承自 IInputChannel)
BeginTryReceive(TimeSpan, AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有指定的超时值和状态对象与之关联。

(继承自 IInputChannel)
BeginWaitForMessage(TimeSpan, AsyncCallback, Object)

开始异步等待消息到达操作,该操作具有指定的超时值和状态对象与之关联。

(继承自 IInputChannel)
Close()

使通信对象从其当前状态转换到关闭状态。

(继承自 ICommunicationObject)
Close(TimeSpan)

使通信对象从其当前状态转换到关闭状态。

(继承自 ICommunicationObject)
CloseAsync(TimeSpan) (继承自 IAsyncCommunicationObject)
EndClose(IAsyncResult)

完成一个异步操作以关闭通信对象。

(继承自 ICommunicationObject)
EndOpen(IAsyncResult)

完成一个异步操作以打开通信对象。

(继承自 ICommunicationObject)
EndReceive(IAsyncResult)

完成用于接收消息的异步操作。

(继承自 IInputChannel)
EndTryReceive(IAsyncResult, Message)

完成用于接收消息的指定异步操作。

(继承自 IInputChannel)
EndWaitForMessage(IAsyncResult)

完成指定的异步等待消息操作。

(继承自 IInputChannel)
GetProperty<T>()

从通道堆栈的适当层返回所请求的类型化对象(如果存在)。

(继承自 IChannel)
Open()

使通信对象从已创建状态转换到已打开状态。

(继承自 ICommunicationObject)
Open(TimeSpan)

使通信对象在指定时间间隔内从已创建状态转换到已打开状态。

(继承自 ICommunicationObject)
OpenAsync(TimeSpan) (继承自 IAsyncCommunicationObject)
Receive()

如果有可用消息,则返回接收到的消息。 如果没有可用消息,则在默认的时间间隔内阻塞。

(继承自 IInputChannel)
Receive(TimeSpan)

如果有可用消息,则返回接收到的消息。 如果没有可用消息,则在指定的时间间隔内阻塞。

(继承自 IInputChannel)
ReceiveAsync()
ReceiveAsync(TimeSpan)
TryReceive(TimeSpan, Message)

尝试在指定的时间间隔内接收消息。

(继承自 IInputChannel)
TryReceiveAsync(TimeSpan)
WaitForMessage(TimeSpan)

返回一个值,该值指示消息是否在指定的时间间隔内到达。

(继承自 IInputChannel)
WaitForMessageAsync(TimeSpan)

事件

Closed

当通信对象完成从正在关闭状态转换到已关闭状态时发生。

(继承自 ICommunicationObject)
Closing

当通信对象首次进入正在关闭状态时发生。

(继承自 ICommunicationObject)
Faulted

当通信对象首次进入出错状态时发生。

(继承自 ICommunicationObject)
Opened

当通信对象完成从正在打开状态转换到已打开状态时发生。

(继承自 ICommunicationObject)
Opening

当通信对象首次进入正在打开状态时发生。

(继承自 ICommunicationObject)

扩展方法

CloseHelperAsync(ICommunicationObject, TimeSpan)
OpenHelperAsync(ICommunicationObject, TimeSpan)

适用于