Пример #1
0
 /// <summary>
 /// Sends a networked request.
 /// Additionally this message/payloadtype is known to have static send parameters and those will be used in transit.
 /// </summary>
 /// <typeparam name="TPacketType">Type of the packet payload.</typeparam>
 /// <param name="payload">Payload instance to be sent in the message that contains static message parameters.</param>
 /// <returns>Indication of the message send state.</returns>
 public SendResult SendRequest <TPacketType>(TPacketType payload)
     where TPacketType : PacketPayload, IStaticPayloadParameters
 {
     return(NetworkSendService.TrySendMessage(OperationType.Request, payload));
 }
Пример #2
0
 public SendResult SendRequest(PacketPayload payload, DeliveryMethod deliveryMethod, bool encrypt = false, byte channel = 0)
 {
     return(NetworkSendService.TrySendMessage(OperationType.Request, payload, deliveryMethod, encrypt, channel));
 }