Share via


BinaryClientFormatterSink 類別

定義

提供使用 BinaryFormatter 的用戶端格式子 (Formatter) 接收的實作。

public ref class BinaryClientFormatterSink : System::Runtime::Remoting::Channels::IClientFormatterSink
public class BinaryClientFormatterSink : System.Runtime.Remoting.Channels.IClientFormatterSink
type BinaryClientFormatterSink = class
    interface IClientFormatterSink
    interface IMessageSink
    interface IClientChannelSink
    interface IChannelSinkBase
Public Class BinaryClientFormatterSink
Implements IClientFormatterSink
繼承
BinaryClientFormatterSink
實作

備註

格式器接收的功能是產生所需的標頭,並序列化訊息到資料流。 在格式器接收之後,會 IMessage 透過 ProcessMessageAsyncProcessRequest 呼叫,將 轉送到鏈結中的所有接收。 在這個階段中,訊息已經串行化,且僅提供為資訊。 需要建立或修改訊息的接收必須放在接收鏈結中,格式器之前。 實作 介面即可輕鬆達成 IClientFormatterSink 此目的,這會讓您覺得有格式器接收的參考。 實際的格式器接收稍後可以接著放置到接收鏈結中。

屬性 描述
includeVersions 指定格式器是否將包含版本設定資訊。 true值為 或 false

重要

搭配不受信任的數據或跨不安全通道使用這個對象的實例是安全性風險。 只搭配受信任的數據和跨安全通道使用此物件。 如需詳細資訊,請參閱 驗證所有輸入

建構函式

BinaryClientFormatterSink(IClientChannelSink)

初始化 BinaryClientFormatterSink 類別的新執行個體。

屬性

NextChannelSink

取得接收鏈結中的下一個 IClientChannelSink

NextSink

取得接收鏈結中的下一個 IMessageSink

Properties

取得目前通道接收之屬性的 IDictionary

方法

AsyncProcessMessage(IMessage, IMessageSink)

非同步處理提供的訊息。

AsyncProcessRequest(IClientChannelSinkStack, IMessage, ITransportHeaders, Stream)

要求目前接收上方法呼叫的非同步處理 (Asynchronous Processing)。

AsyncProcessResponse(IClientResponseChannelSinkStack, Object, ITransportHeaders, Stream)

要求目前接收上方法呼叫的回應非同步處理。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetRequestStream(IMessage, ITransportHeaders)

傳回所提供訊息將在其上序列化的 Stream

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ProcessMessage(IMessage, ITransportHeaders, Stream, ITransportHeaders, Stream)

要求來自目前接收的訊息處理。

SyncProcessMessage(IMessage)

同步處理提供的訊息。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱