Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetEnvoySink Method
Collapse the table of content
Expand the table of content

IContributeEnvoySink.GetEnvoySink Method

This API supports the .NET Framework 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
)

Parameters

obj
Type: System.MarshalByRefObject

The server object for which the chain is being created.

nextSink
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft