Share via


IClientChannelSinkStack 介面

定義

將功能提供給必須在非同步 (Asynchronous) 訊息回應解碼期間叫用的用戶端通道接收的堆疊。

public interface class IClientChannelSinkStack : System::Runtime::Remoting::Channels::IClientResponseChannelSinkStack
public interface IClientChannelSinkStack : System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack
[System.Runtime.InteropServices.ComVisible(true)]
public interface IClientChannelSinkStack : System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack
type IClientChannelSinkStack = interface
    interface IClientResponseChannelSinkStack
[<System.Runtime.InteropServices.ComVisible(true)>]
type IClientChannelSinkStack = interface
    interface IClientResponseChannelSinkStack
Public Interface IClientChannelSinkStack
Implements IClientResponseChannelSinkStack
衍生
屬性
實作

備註

會在 IClientChannelSinkStack 處理對異步呼叫的回應期間使用 。

在同步呼叫期間,當訊息輸出至伺服器時, IClientChannelSink.ProcessMessage 會呼叫 方法。 接收鏈結中的每個接收都會在下一個接收上呼叫 ProcessMessage 方法,直到呼叫到達鏈結結尾的傳輸接收為止。 訊息會從該處傳輸至伺服器。

透過方法呼叫 AsyncProcessMessage 格式器接收時,它會在下一個通道接收上呼叫,以異步方式分派呼叫 AsyncProcessRequest 。 需要一組回復接收才能處理回應。 任何想要處理回應的接收,都必須將本身推送至 內部的 AsyncProcessRequest用戶端通道接收堆疊。

方法

AsyncProcessResponse(ITransportHeaders, Stream)

在目前接收堆疊中的接收上,要求方法呼叫的非同步 (Asynchronous) 處理。

(繼承來源 IClientResponseChannelSinkStack)
DispatchException(Exception)

分派回覆接收上的指定例外狀況。

(繼承來源 IClientResponseChannelSinkStack)
DispatchReplyMessage(IMessage)

分派回覆接收上的指定回覆訊息。

(繼承來源 IClientResponseChannelSinkStack)
Pop(IClientChannelSink)

從整個接收堆疊的所有接收以及指定的接收中,取出相關的資訊。

Push(IClientChannelSink, Object)

將指定的接收和與其相關的資訊推入接收堆疊。

適用於

另請參閱