IDuplexSessionChannel 介面

定義

定義會將雙工通道與工作階段產生關聯的介面。Defines the interface that associates a duplex channel with a session.

public interface class IDuplexSessionChannel : System::ServiceModel::Channels::IDuplexChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IDuplexSession ^>
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 ICommunicationObject
    interface ISessionChannel<IDuplexSession>
Public Interface IDuplexSessionChannel
Implements IDuplexChannel, ISessionChannel(Of IDuplexSession)
實作

備註

重要

呼叫實作此介面之類別的方法時,若並用了不信任的資料,會造成安全性上的風險。Calling methods from classes that implement this interface with untrusted data is a security risk. 呼叫實作此介面之類別的方法時,請一律使用信任的資料。Call the methods from classes that implement this interface only with trusted data. 如需詳細資訊,請參閱資料驗證For more information, see Data Validation.

IDuplexSessionChannel 介面會指示 IDuplexChannel 實作 IDuplexSession 語意 (Semantics)。The IDuplexSessionChannel interface indicates that an IDuplexChannel implements IDuplexSession semantics.

在有提供 IDuplexSessionChannel 時,它的關聯 IDuplexSession 可以透過 Session 屬性來擷取。Given an IDuplexSessionChannel, its associated IDuplexSession can be retrieved through the Session property.

屬性

LocalAddress

取得輸入通道接收訊息的位址。Gets the address on which the input channel receives messages.

(繼承來源 IInputChannel)
RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。Gets the destination of the service to which messages are sent out on the output channel.

(繼承來源 IOutputChannel)
Session

取得與此通道相關聯之工作階段的型別。Gets the type of session associated with this channel.

(繼承來源 ISessionChannel<TSession>)
State

取得通訊導向物件的目前狀態。Gets the current state of the communication-oriented object.

(繼承來源 ICommunicationObject)
Via

取得包含輸出通道上訊息之目標傳輸位址的 URI。Gets the URI that contains the transport address to which messages are sent on the output channel.

(繼承來源 IOutputChannel)

方法

Abort()

導致通訊物件立即從目前的狀態轉換為已關閉狀態。Causes a communication object to transition immediately from its current state into the closed state.

(繼承來源 ICommunicationObject)
BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

(繼承來源 ICommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。Begins an asynchronous operation to close a communication object with a specified timeout.

(繼承來源 ICommunicationObject)
BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟通訊物件。Begins an asynchronous operation to open a communication object.

(繼承來源 ICommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業,開啟有已指定時間間隔的通訊物件。Begins an asynchronous operation to open a communication object within a specified interval of time.

(繼承來源 ICommunicationObject)
BeginReceive(AsyncCallback, Object)

開始非同步的作業,接收具有與該作業關聯之狀態物件的訊息。Begins an asynchronous operation to receive a message that has a state object associated with it.

(繼承來源 IInputChannel)
BeginReceive(TimeSpan, AsyncCallback, Object)

開始非同步的作業,接收具有已指定逾時以及與該作業關聯之狀態物件的訊息。Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.

(繼承來源 IInputChannel)
BeginSend(Message, AsyncCallback, Object)

開始非同步作業,將訊息傳送到輸出通道的目的端。Begins an asynchronous operation to transmit a message to the destination of the output channel.

(繼承來源 IOutputChannel)
BeginSend(Message, TimeSpan, AsyncCallback, Object)

開始非同步作業,於指定的時間間隔內將訊息傳送給輸出通道的目的端。Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

(繼承來源 IOutputChannel)
BeginTryReceive(TimeSpan, AsyncCallback, Object)

開始非同步的作業,接收具有已指定逾時以及與該作業關聯之狀態物件的訊息。Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.

(繼承來源 IInputChannel)
BeginWaitForMessage(TimeSpan, AsyncCallback, Object)

開始非同步的「等候訊息到達」(wait-for-a-message-to-arrive) 作業,這個作業具有指定的逾時以及與該作業關聯之狀態物件。Begins an asynchronous wait-for-a-message-to-arrive operation that has a specified time out and state object associated with it.

(繼承來源 IInputChannel)
Close()

導致通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state.

(繼承來源 ICommunicationObject)
Close(TimeSpan)

導致通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state.

(繼承來源 ICommunicationObject)
EndClose(IAsyncResult)

完成非同步作業以關閉通訊物件。Completes an asynchronous operation to close a communication object.

(繼承來源 ICommunicationObject)
EndOpen(IAsyncResult)

完成非同步作業以開啟通訊物件。Completes an asynchronous operation to open a communication object.

(繼承來源 ICommunicationObject)
EndReceive(IAsyncResult)

完成非同步作業,以便接收訊息。Completes an asynchronous operation to receive a message.

(繼承來源 IInputChannel)
EndSend(IAsyncResult)

完成非同步作業,將訊息傳送到輸出通道的目的端。Completes an asynchronous operation to transmit a message to the destination of the output channel.

(繼承來源 IOutputChannel)
EndTryReceive(IAsyncResult, Message)

完成指定的非同步作業,以便接收訊息。Completes the specified asynchronous operation to receive a message.

(繼承來源 IInputChannel)
EndWaitForMessage(IAsyncResult)

完成指定的非同步「等候訊息」(wait-for-a-message) 作業。Completes the specified asynchronous wait-for-a-message operation.

(繼承來源 IInputChannel)
GetProperty<T>()

從通道堆疊的適當層次中,傳回要求的型別物件 (如果有)。Returns a typed object requested, if present, from the appropriate layer in the channel stack.

(繼承來源 IChannel)
Open()

導致通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state.

(繼承來源 ICommunicationObject)
Open(TimeSpan)

在指定時間間隔內,讓通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state within a specified interval of time.

(繼承來源 ICommunicationObject)
Receive()

如果有收到訊息,則將該訊息傳回。Returns the message received, if one is available. 如果沒有收到訊息,執行緒就會封鎖一段預設間隔時間。If a message is not available, blocks for a default interval of time.

(繼承來源 IInputChannel)
Receive(TimeSpan)

如果有收到訊息,則將該訊息傳回。Returns the message received, if one is available. 如果沒有收到訊息,執行緒就會封鎖一段指定的間隔時間。If a message is not available, blocks for a specified interval of time.

(繼承來源 IInputChannel)
Send(Message)

將訊息傳送到輸出通道的目的端。Transmits a message to the destination of the output channel.

(繼承來源 IOutputChannel)
Send(Message, TimeSpan)

於指定的時間間隔內在目前的輸出通道上傳送訊息。Sends a message on the current output channel within a specified interval of time.

(繼承來源 IOutputChannel)
TryReceive(TimeSpan, Message)

嘗試在指定的時間間隔內接收訊息。Tries to receive a message within a specified interval of time.

(繼承來源 IInputChannel)
WaitForMessage(TimeSpan)

傳回值,這個值會表示訊息是否是在指定的時間間隔內到達。Returns a value that indicates whether a message has arrived within a specified interval of time.

(繼承來源 IInputChannel)

事件

Closed

當通訊物件從關閉中狀態轉換為已關閉狀態完成時發生。Occurs when the communication object completes its transition from the closing state into the closed state.

(繼承來源 ICommunicationObject)
Closing

當通訊物件第一次進入關閉中狀態時發生。Occurs when the communication object first enters the closing state.

(繼承來源 ICommunicationObject)
Faulted

當通訊物件第一次進入錯誤狀態時發生。Occurs when the communication object first enters the faulted state.

(繼承來源 ICommunicationObject)
Opened

當通訊物件從開啟中狀態轉換為已開啟狀態結束時發生。Occurs when the communication object completes its transition from the opening state into the opened state.

(繼承來源 ICommunicationObject)
Opening

當通訊物件第一次進入開啟中狀態時發生。Occurs when the communication object first enters the opening state.

(繼承來源 ICommunicationObject)

適用於