語言

IDuplexSession 介面

定義

定義了在訊息端點間雙向通訊兩端所實作的會話介面。

public interface class IDuplexSession : System::ServiceModel::Channels::IInputSession, System::ServiceModel::Channels::IOutputSession
public interface IDuplexSession : System.ServiceModel.Channels.IInputSession, System.ServiceModel.Channels.IOutputSession
type IDuplexSession = interface
    interface IInputSession
    interface ISession
    interface IOutputSession
Public Interface IDuplexSession
Implements IInputSession, IOutputSession
實作

備註

IDuplexSession介面是由介面定義IInputSession的入站會話與由介面定義IOutputSession的出站會話的聯集。 進站或出站會話都可以獨立終止。 出站會話可以透過呼叫 CloseOutputSession 同步終止,或非同步 BeginCloseOutputSession呼叫終止。

入站會話可以遠端終止。 Receive當該入站會話關閉時,與該連線相關的資料會開始回傳null。

屬性

名稱 Description
Id

取得唯一識別該會話的 ID。

(繼承來源 ISession)

方法

名稱 Description
BeginCloseOutputSession(AsyncCallback, Object)

開始非同步操作以終止出站會話。

BeginCloseOutputSession(TimeSpan, AsyncCallback, Object)

開始一個非同步操作,以指定逾時結束外撥會話,該操作必須在該時間內完成。

CloseOutputSession()

終止表示該端點不會再發送與該會話相關通道訊息的外撥會話。

CloseOutputSession(TimeSpan)

終止表示在指定時間內,該端點與該會話關聯的通道不會再發送訊息的外發會話。

EndCloseOutputSession(IAsyncResult)

完成一項非同步操作,終止該出站會話,表示該端點在該會話所關聯的通道上不會再發送訊息。

適用於