コード例 #1
0
        public static RPCResponseMessage Retrieve(RPCRequestMessage request)
        {
            var message = ReferencePool <RPCResponseMessage> .Shared.New();

            message.MessageId        = Guid.NewGuid();
            message.RequestMessageId = request.MessageId;
            return(message);
        }
コード例 #2
0
 public static void Store(RPCRequestMessage message)
 {
     message.MessageId         = Guid.Empty;
     message.MethodId          = Guid.Empty;
     message.Parameters        = null;
     message.CancellationToken = false;
     ReferencePool <RPCRequestMessage> .Shared.Store(message);
 }
コード例 #3
0
 public RPCResponseMessage(RPCRequestMessage request)
 {
     RequestMessageId = request.MessageId;
 }