IRequestSessionChannel 接口

定义

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

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

注解

重要

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

IRequestSessionChannel 接口指示 IRequestChannel 实现 IOutputSession 语义。

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

属性

RemoteAddress

获取请求通道将消息发送到的远程地址。

(继承自 IRequestChannel)
Session

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

(继承自 ISessionChannel<TSession>)
State

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

(继承自 ICommunicationObject)
Via

获取发送请求的目标传输地址。

(继承自 IRequestChannel)

方法

Abort()

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

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

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

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

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

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

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

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

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

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

开始一个异步操作,将请求消息传送到请求-回复消息交换的回复端。

(继承自 IRequestChannel)
BeginRequest(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内将请求消息传送到请求-回复消息交换的回复端。

(继承自 IRequestChannel)
Close()

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

(继承自 ICommunicationObject)
Close(TimeSpan)

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

(继承自 ICommunicationObject)
EndClose(IAsyncResult)

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

(继承自 ICommunicationObject)
EndOpen(IAsyncResult)

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

(继承自 ICommunicationObject)
EndRequest(IAsyncResult)

完成异步操作以向传送的请求返回基于消息的响应。

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

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

(继承自 IChannel)
Open()

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

(继承自 ICommunicationObject)
Open(TimeSpan)

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

(继承自 ICommunicationObject)
Request(Message)

发送一个基于消息的请求,并返回相关的基于消息的响应。

(继承自 IRequestChannel)
Request(Message, TimeSpan)

发送一个基于消息的请求,并在指定的时间间隔内返回相关的基于消息的响应。

(继承自 IRequestChannel)

事件

Closed

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

(继承自 ICommunicationObject)
Closing

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

(继承自 ICommunicationObject)
Faulted

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

(继承自 ICommunicationObject)
Opened

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

(继承自 ICommunicationObject)
Opening

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

(继承自 ICommunicationObject)

适用于