Пример #1
0
        private void ProcessSuccess(RpcCall message, ICommunicationChannel responseChannel)
        {
            RpcCallResult callResult = null;

            try
            {
                var methodResult = _requestProcessor.Dispatch(_requestService, message.Id, message.Parameters);
                if (methodResult != null)
                {
                    callResult = RpcCallResult.Respond(message, methodResult);
                }
            }
            catch (Exception e)
            {
                callResult = RpcCallResult.Exception(message, e);
            }

            if (callResult != null)
            {
                responseChannel.Write(callResult);
            }
        }