System.Runtime.Remoting.Channels.BinaryClientFormatterSink Class

Provides the implementation for a client formatter sink that uses the System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.

See Also: BinaryClientFormatterSink Members


public class BinaryClientFormatterSink : IClientFormatterSink


The function of the formatter sink is to generate the necessary headers and serialize the message to the stream. After the formatter sink, the System.Runtime.Remoting.Messaging.IMessage is forwarded to all sinks in the chain through the IClientChannelSink.ProcessMessage(System.Runtime.Remoting.Messaging.IMessage, ITransportHeaders, System.IO.Stream, ITransportHeaders@, System.IO.Stream@) or IClientChannelSink.AsyncProcessRequest(IClientChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, ITransportHeaders, System.IO.Stream) calls. At this stage the message has already been serialized and is provided as information only. Sinks that need to create or modify the message must be placed in the sink chain before the formatter. This is easily achieved by implementing the System.Runtime.Remoting.Channels.IClientFormatterSink interface, which gives the impression of having a reference to the formatter sink. The real formatter sink can then be placed later in the sink chain.


Specifies whether the formatter will include versioning information. Values are true or false.


Using an instance of this object with untrusted data or across an unsecure channel is a security risk. Use this object only with trusted data and across a secure channel. For more information, see tp://


Namespace: System.Runtime.Remoting.Channels
Assembly: System.Runtime.Remoting (in System.Runtime.Remoting.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,