ChannelServices.DispatchMessage Method (IServerChannelSinkStack, IMessage, IMessage)

 

Dispatches incoming remote calls.

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

[SecurityCriticalAttribute]
public static ServerProcessing DispatchMessage(
	IServerChannelSinkStack sinkStack,
	IMessage msg,
	out IMessage replyMsg
)

Parameters

sinkStack
Type: System.Runtime.Remoting.Channels.IServerChannelSinkStack

The stack of server channel sinks that the message already traversed.

msg
Type: System.Runtime.Remoting.Messaging.IMessage

The message to dispatch.

replyMsg
Type: System.Runtime.Remoting.Messaging.IMessage

When this method returns, contains a IMessage that holds the reply from the server to the message that is contained in the msg parameter. This parameter is passed uninitialized.

Return Value

Type: System.Runtime.Remoting.Channels.ServerProcessing

A ServerProcessing that gives the status of the server message processing.

Exception Condition
ArgumentNullException

The msg parameter is null.

SecurityException

The immediate caller does not have infrastructure permission.

This method is used by channels to dispatch incoming remote calls.

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: