IDuplexSessionChannel 接口
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义将双工通道与会话进行关联的接口。
public interface class IDuplexSessionChannel : System::ServiceModel::Channels::IDuplexChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IDuplexSession ^>
C#
public interface IDuplexSessionChannel : System.ServiceModel.Channels.IDuplexChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IDuplexSession>
type IDuplexSessionChannel = interface
interface IDuplexChannel
interface IInputChannel
interface IOutputChannel
interface IChannel
interface ISessionChannel<IDuplexSession>
interface ICommunicationObject
type IDuplexSessionChannel = interface
interface IChannel
interface ICommunicationObject
interface IDuplexChannel
interface IInputChannel
interface IOutputChannel
interface ISessionChannel<IDuplexSession>
type IDuplexSessionChannel = interface
interface IDuplexChannel
interface IInputChannel
interface IOutputChannel
interface IChannel
interface ICommunicationObject
interface ISessionChannel<IDuplexSession>
type IDuplexSessionChannel = interface
interface IDuplexChannel
interface IInputChannel
interface IChannel
interface ICommunicationObject
interface IOutputChannel
interface ISessionChannel<IDuplexSession>
Public Interface IDuplexSessionChannel
Implements IDuplexChannel, ISessionChannel(Of IDuplexSession)
- 实现
重要
使用不受信任的数据从实现此接口的类中调用方法存在安全风险。 仅使用受信任的数据从实现此接口的类中调用方法。 有关详细信息,请参阅 验证所有输入。
IDuplexSessionChannel 接口指示 IDuplexChannel 实现 IDuplexSession 语义。
给定一个 IDuplexSessionChannel,其关联的 IDuplexSession 可通过 Session 属性进行检索。
Local |
获取输入通道接收消息的地址。 (继承自 IInputChannel) |
Remote |
获取在输出通道上发出的消息将要到达的服务的目标。 (继承自 IOutputChannel) |
Session |
获取与此通道关联的会话类型。 (继承自 ISessionChannel<TSession>) |
State |
获取面向通信的对象的当前状态。 (继承自 ICommunicationObject) |
Via |
获取 URI,该 URI 包含输出通道发送消息的目标传输地址。 (继承自 IOutputChannel) |
Closed |
当通信对象完成从正在关闭状态转换到已关闭状态时发生。 (继承自 ICommunicationObject) |
Closing |
当通信对象首次进入正在关闭状态时发生。 (继承自 ICommunicationObject) |
Faulted |
当通信对象首次进入出错状态时发生。 (继承自 ICommunicationObject) |
Opened |
当通信对象完成从正在打开状态转换到已打开状态时发生。 (继承自 ICommunicationObject) |
Opening |
当通信对象首次进入正在打开状态时发生。 (继承自 ICommunicationObject) |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |