System.Runtime.Remoting.Contexts.IContributeEnvoySink.GetEnvoySink Method

Takes the first sink in the chain of sinks composed so far, and then chains its message sink in front of the chain already formed.

Syntax

public System.Runtime.Remoting.Messaging.IMessageSink GetEnvoySink (MarshalByRefObject obj, System.Runtime.Remoting.Messaging.IMessageSink nextSink)

Parameters

obj
The server object for which the chain is being created.
nextSink
The chain of sinks composed so far.

Returns

The composite sink chain.

Remarks

The IContributeEnvoySink.GetEnvoySink(MarshalByRefObject, System.Runtime.Remoting.Messaging.IMessageSink) method is used as an optimization to create an envoy sink when the destination is a different context in the same application domain and is used by the Wrap operation.

Requirements

Namespace: System.Runtime.Remoting.Contexts
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0