internal static InMemFrame NewPayLoad(ulong conversationId, PayloadType payloadType, IBonded layerData, IMessage message, TaskCompletionSource <IMessage> taskSource) { var headers = new SimpleInMemHeaders { conversation_id = conversationId, payload_type = payloadType }; var payload = new InMemFrame { headers = headers, layerData = layerData, message = message, outstandingRequest = taskSource }; Validate(payload); return(payload); }
internal static InMemFrame NewPayLoad(ulong conversationId, PayloadType payloadType, IBonded layerData, IMessage message, TaskCompletionSource<IMessage> taskSource) { var headers = new SimpleInMemHeaders { conversation_id = conversationId, payload_type = payloadType }; var payload = new InMemFrame { headers = headers, layerData = layerData, message = message, outstandingRequest = taskSource }; Validate(payload); return payload; }