IContributeEnvoySink.GetEnvoySink Method (MarshalByRefObject, IMessageSink)


This API supports the product infrastructure and is not intended to be used directly from your code.

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.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

IMessageSink GetEnvoySink(
	MarshalByRefObject obj,
	IMessageSink nextSink


Type: System.MarshalByRefObject

The server object for which the chain is being created.

Type: System.Runtime.Remoting.Messaging.IMessageSink

The chain of sinks composed so far.

Return Value

Type: System.Runtime.Remoting.Messaging.IMessageSink

The composite sink chain.

The GetEnvoySink 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.

.NET Framework
Available since 1.1
Return to top