IOutputSessionChannel 接口

定义

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

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

注解

重要

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

IOutputSessionChannel 接口指示 IOutputChannel 实现 IOutputSession 语义。

IOutputSession 相关联的 IOutputSessionChannel 可通过 Session 属性进行检索。

属性

RemoteAddress

获取在输出通道上发出的消息将要到达的服务的目标。

(继承自 IOutputChannel)
Session

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

(继承自 ISessionChannel<TSession>)
State

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

(继承自 ICommunicationObject)
Via

获取 URI,该 URI 包含输出通道发送消息的目标传输地址。

(继承自 IOutputChannel)

方法

Abort()

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

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

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

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

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

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

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

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

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

(继承自 ICommunicationObject)
BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。

(继承自 IOutputChannel)
BeginSend(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。

(继承自 IOutputChannel)
Close()

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

(继承自 ICommunicationObject)
Close(TimeSpan)

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

(继承自 ICommunicationObject)
EndClose(IAsyncResult)

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

(继承自 ICommunicationObject)
EndOpen(IAsyncResult)

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

(继承自 ICommunicationObject)
EndSend(IAsyncResult)

完成一个异步操作,向输出通道的目标传输消息。

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

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

(继承自 IChannel)
Open()

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

(继承自 ICommunicationObject)
Open(TimeSpan)

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

(继承自 ICommunicationObject)
Send(Message)

向输出通道的目标传输一条消息。

(继承自 IOutputChannel)
Send(Message, TimeSpan)

在指定时间间隔内在当前输出通道上发送一条消息。

(继承自 IOutputChannel)

事件

Closed

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

(继承自 ICommunicationObject)
Closing

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

(继承自 ICommunicationObject)
Faulted

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

(继承自 ICommunicationObject)
Opened

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

(继承自 ICommunicationObject)
Opening

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

(继承自 ICommunicationObject)

适用于