IInputSessionChannel 接口

定义

定义将输入通道与会话进行关联的接口。

public interface class IInputSessionChannel : System::ServiceModel::Channels::IInputChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IInputSession ^>
public interface IInputSessionChannel : System.ServiceModel.Channels.IInputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IInputSession>
type IInputSessionChannel = interface
    interface IChannel
    interface ICommunicationObject
    interface IInputChannel
    interface ISessionChannel<IInputSession>
type IInputSessionChannel = interface
    interface IInputChannel
    interface IChannel
    interface ISessionChannel<IInputSession>
    interface ICommunicationObject
type IInputSessionChannel = interface
    interface IInputChannel
    interface IChannel
    interface ICommunicationObject
    interface ISessionChannel<IInputSession>
Public Interface IInputSessionChannel
Implements IInputChannel, ISessionChannel(Of IInputSession)
实现

注解

重要

使用不受信任的数据从实现此接口的类中调用方法存在安全风险。 仅使用受信任的数据从实现此接口的类中调用方法。 有关详细信息,请参阅 “验证所有输入”。

IInputSessionChannel 接口指示 IInputChannel 实现 IInputSession 语义。

IInputSession 相关联的 IInputSessionChannel 可通过 Session 属性进行检索。

属性

LocalAddress

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

(继承自 IInputChannel)
Session

获取与此通道关联的会话类型。

(继承自 ISessionChannel<TSession>)
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)
EndClose(IAsyncResult)

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

(继承自 ICommunicationObject)
EndOpen(IAsyncResult)

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

(继承自 ICommunicationObject)
EndReceive(IAsyncResult)

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

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

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

(继承自 IInputChannel)
EndWaitForMessage(IAsyncResult)

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

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

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

(继承自 IChannel)
Open()

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

(继承自 ICommunicationObject)
Open(TimeSpan)

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

(继承自 ICommunicationObject)
Receive()

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

(继承自 IInputChannel)
Receive(TimeSpan)

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

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

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

(继承自 IInputChannel)
WaitForMessage(TimeSpan)

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

(继承自 IInputChannel)

事件

Closed

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

(继承自 ICommunicationObject)
Closing

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

(继承自 ICommunicationObject)
Faulted

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

(继承自 ICommunicationObject)
Opened

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

(继承自 ICommunicationObject)
Opening

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

(继承自 ICommunicationObject)

适用于