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的接收者。
屬性
| 名稱 | Description |
|---|---|
| LocalAddress |
取得輸入通道接收訊息的位址。 (繼承來源 IInputChannel) |
| RemoteAddress |
取得訊息在輸出通道發送的服務目的地。 (繼承來源 IOutputChannel) |
| State |
取得通訊導向物件的目前狀態。 (繼承來源 ICommunicationObject) |
| Via |
取得包含傳送位址的 URI,該位址在輸出通道上傳送訊息。 (繼承來源 IOutputChannel) |
方法
事件
| 名稱 | Description |
|---|---|
| Closed |
當通訊物件完成從關閉狀態轉換成關閉狀態時發生。 (繼承來源 ICommunicationObject) |
| Closing |
當通訊物件第一次進入關閉狀態時發生。 (繼承來源 ICommunicationObject) |
| Faulted |
當通訊物件第一次進入錯誤狀態時發生。 (繼承來源 ICommunicationObject) |
| Opened |
當通訊物件完成從開啟狀態轉換成開啟狀態時發生。 (繼承來源 ICommunicationObject) |
| Opening |
當通訊物件第一次進入開啟狀態時發生。 (繼承來源 ICommunicationObject) |