RemotingServices.GetEnvoyChainForProxy Method (MarshalByRefObject)

 

Returns a chain of envoy sinks that should be used when sending messages to the remote object represented by the specified proxy.

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

[SecurityCriticalAttribute]
public static IMessageSink GetEnvoyChainForProxy(
	MarshalByRefObject obj
)

Parameters

obj
Type: System.MarshalByRefObject

The proxy of the remote object that requested envoy sinks are associated with.

Return Value

Type: System.Runtime.Remoting.Messaging.IMessageSink

A chain of envoy sinks associated with the specified proxy.

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

Envoy sinks are sinks sent along with the ObjRef of an object that is used when returning messages to that object. The current method returns the envoy sinks that are used during communication between the proxy of the object and the object itself.

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: