ChannelServices::DispatchMessage Method (IServerChannelSinkStack^, IMessage^, IMessage^%)
Dispatches incoming remote calls.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] static ServerProcessing DispatchMessage( IServerChannelSinkStack^ sinkStack, IMessage^ msg, [OutAttribute] 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::ServerProcessingA 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.
For operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure
Available since 1.1