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

            message.MessageId        = Guid.NewGuid();
            message.RequestMessageId = request.MessageId;
            return(message);
        }
Example #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);
 }
Example #3
0
 public RPCResponseMessage(RPCRequestMessage request)
 {
     RequestMessageId = request.MessageId;
 }