System.Runtime.Remoting.Contexts.IContributeEnvoySink Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Contexts
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
Summary
Contributes an envoy message sink on the client end.
C# Syntax:
public interface IContributeEnvoySink
Remarks
The IContributeEnvoySink interface is implemented by context properties in the server Context that want to contribute an envoy message sink on the client end. The Server Envoy Chain is composed from those context properties that implement IContributeEnvoySink interface. The Envoy Chain that lives on the client end and acts as representative of the corresponding message sinks from the server context properties.
See also:
System.Runtime.Remoting.Contexts Namespace | Context

System.Runtime.Remoting.Contexts.IContributeEnvoySink Member List:

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

System.Runtime.Remoting.Contexts.IContributeEnvoySink Member Details

Method: GetEnvoySink(
   MarshalByRefObject obj,
   IMessageSink nextSink
)
Summary
Takes the first sink in the chain of sinks composed so far, chain its message sink in front of the chain formed.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
IMessageSink GetEnvoySink(
   MarshalByRefObject obj,
   IMessageSink nextSink
);
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 an envoy sink when the destination is a different context in the same application domain and is used by the Wrap operation.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.