internal Task <MessageRpc> DispatchAsync(MessageRpc rpc, bool isOperationContextSet)
        {
            rpc.ErrorProcessor = ProcessError;
            rpc.AsyncProcessor = ProcessMessageAsync;
            var task = rpc.ProcessAsync(isOperationContextSet);

            rpc._processCallReturned = true;
            return(task);
        }
示例#2
0
 internal Task <MessageRpc> DispatchAsync(ref MessageRpc rpc, bool isOperationContextSet)
 {
     rpc.ErrorProcessor = processMessageNonCleanupError;
     rpc.AsyncProcessor = ProcessMessageAsync;
     return(rpc.ProcessAsync(isOperationContextSet));
 }