NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IContributeEnvoySink.GetEnvoySink

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

[Visual Basic]
Function GetEnvoySink( _
   ByVal obj As MarshalByRefObject, _
   ByVal nextSink As IMessageSink _
) As IMessageSink
[C#]
IMessageSink GetEnvoySink(
   MarshalByRefObject obj,
   IMessageSink nextSink
);
[C++]
IMessageSink* GetEnvoySink(
   MarshalByRefObject* obj,
   IMessageSink* nextSink
) = 0;
[JScript]
function GetEnvoySink(
   obj : MarshalByRefObject,
   nextSink : IMessageSink
) : IMessageSink;

Parameters

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

Return Value

The composite sink chain.

Remarks

Used as an optimization to create envoy sink when the destination is a different context in the same application domain and is used by the Wrap operation.

See Also

IContributeEnvoySink Interface | IContributeEnvoySink Members | System.Runtime.Remoting Namespace