System.Runtime.Remoting.Channels.BinaryServerFormatterSink.GetResponseStream Method

Returns the System.IO.Stream onto which the provided response message is to be serialized.

Syntax

public System.IO.Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state, System.Runtime.Remoting.Messaging.IMessage msg, ITransportHeaders headers)

Parameters

sinkStack
A stack of sinks that is leading back to the server transport sink.
state
Information that is associated with the current sink, generated on the request side, and needed on the response side.
msg
The response message to serialize.
headers
The headers to put in the response stream to the client.

Returns

The System.IO.Stream onto which the provided response message is to be serialized.

Remarks

This method is called when a response stream needs to be created.

Requirements

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