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 語意 (Semantics)。

可以透過 IOutputSession 屬性來擷取與 IOutputSessionChannel 相關聯的 Session

屬性

RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。

(繼承來源 IOutputChannel)
Session

取得與此通道相關聯之工作階段的型別。

(繼承來源 ISessionChannel<TSession>)
State

取得通訊導向物件的目前狀態。

(繼承來源 ICommunicationObject)
Via

取得包含輸出通道上訊息之目標傳輸位址的 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)

適用於