ChannelServices.DispatchMessage Method

Dispatches incoming remote calls.

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

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.

ExceptionCondition
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.

.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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft