public static RPCResponseMessage Retrieve(RPCRequestMessage request) { var message = ReferencePool <RPCResponseMessage> .Shared.New(); message.MessageId = Guid.NewGuid(); message.RequestMessageId = request.MessageId; return(message); }
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); }
public RPCResponseMessage(RPCRequestMessage request) { RequestMessageId = request.MessageId; }