IDuplexChannel 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义通道必须实现以发送和接收消息的接口。
public interface class IDuplexChannel : System::ServiceModel::Channels::IInputChannel, System::ServiceModel::Channels::IOutputChannel
public interface IDuplexChannel : System.ServiceModel.Channels.IInputChannel, System.ServiceModel.Channels.IOutputChannel
type IDuplexChannel = interface
interface IChannel
interface ICommunicationObject
interface IInputChannel
interface IOutputChannel
type IDuplexChannel = interface
interface IInputChannel
interface IChannel
interface ICommunicationObject
interface IOutputChannel
Public Interface IDuplexChannel
Implements IInputChannel, IOutputChannel
- 派生
- 实现
注解
Important
从实现此接口且不受信任的数据的类调用方法存在安全风险。 从仅使用受信任数据的实现此接口的类调用方法。 有关详细信息,请参阅验证所有输入。
接口IDuplexChannel是接口和IInputChannel接口的IOutputChannel并集。 该IDuplexChannel接口不强制实现和IInputChannel实现时之间的IOutputChannel任何关联。 这意味着,特别是协定不要求通过 IInputChannel 接收的邮件的发件人等于通过 IOutputChannel发送的邮件的收件人。
属性
| 名称 | 说明 |
|---|---|
| LocalAddress |
获取输入通道接收消息的地址。 (继承自 IInputChannel) |
| RemoteAddress |
获取在输出通道上发送消息的服务的目标。 (继承自 IOutputChannel) |
| State |
获取面向通信的对象的当前状态。 (继承自 ICommunicationObject) |
| Via |
获取包含在输出通道上发送消息的传输地址的 URI。 (继承自 IOutputChannel) |
方法
事件
| 名称 | 说明 |
|---|---|
| Closed |
当通信对象完成从结束状态到关闭状态的转换时发生。 (继承自 ICommunicationObject) |
| Closing |
通信对象首次进入结束状态时发生。 (继承自 ICommunicationObject) |
| Faulted |
通信对象首次进入错误状态时发生。 (继承自 ICommunicationObject) |
| Opened |
当通信对象完成从打开状态到打开状态的转换时发生。 (继承自 ICommunicationObject) |
| Opening |
通信对象首次进入打开状态时发生。 (继承自 ICommunicationObject) |