DispatchMessage() public static méthode

public static DispatchMessage ( IServerChannelSinkStack sinkStack, IMessage msg, IMessage &replyMsg ) : ServerProcessing
sinkStack IServerChannelSinkStack
msg IMessage
replyMsg IMessage
Résultat ServerProcessing
        [System.Security.SecurityCritical]  // auto-generated
        public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack,
                                               IMessage requestMsg,
                                               ITransportHeaders requestHeaders, Stream requestStream,
                                               out IMessage responseMsg, out ITransportHeaders responseHeaders,
                                               out Stream responseStream)
        {
            if (requestMsg == null)
            {
                throw new ArgumentNullException(
                          "requestMsg",
                          Environment.GetResourceString("Remoting_Channel_DispatchSinkMessageMissing"));
            }
            Contract.EndContractBlock();

            // check arguments
            if (requestStream != null)
            {
                throw new RemotingException(
                          Environment.GetResourceString("Remoting_Channel_DispatchSinkWantsNullRequestStream"));
            }

            responseHeaders = null;
            responseStream  = null;
            return(ChannelServices.DispatchMessage(sinkStack, requestMsg, out responseMsg));
        } // ProcessMessage
Exemple #2
0
        public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack,
                                               IMessage requestMsg,
                                               ITransportHeaders requestHeaders,
                                               Stream requestStream,
                                               out IMessage responseMsg,
                                               out ITransportHeaders responseHeaders,
                                               out Stream responseStream)
        {
            responseHeaders = null;
            responseStream  = null;

            return(ChannelServices.DispatchMessage(sinkStack, requestMsg, out responseMsg));
        }
Exemple #3
0
        public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack,
                                               IMessage requestMsg,
                                               ITransportHeaders requestHeaders,
                                               Stream requestStream,
                                               out IMessage responseMsg,
                                               out ITransportHeaders responseHeaders,
                                               out Stream responseStream)
        {
            responseHeaders = null;
            responseStream  = null;

                        #if !DISABLE_REMOTING
            return(ChannelServices.DispatchMessage(sinkStack, requestMsg, out responseMsg));
                        #else
            responseMsg = null;
            return(ServerProcessing.OneWay);
                        #endif
        }