Beispiel #1
0
 public static object SendRequest(this ClientConnector clientConnector, IClient2ServerPacket client2ServerPacket)
 {
     GetModuleCommandValues(client2ServerPacket.GetType(), out var module, out var command);
     return(clientConnector.SendRequest(module, command, client2ServerPacket));
 }
Beispiel #2
0
 public static async Task <object> SendRequestAsync(this ClientConnector clientConnector, IClient2ServerPacket client2ServerPacket)
 {
     GetModuleCommandValues(client2ServerPacket.GetType(), out var module, out var command);
     return(await clientConnector.SendRequestAsync(module, command, client2ServerPacket));
 }
Beispiel #3
0
 public static void Send(this ClientConnector clientConnector, IClient2ServerPacket client2ServerPacket)
 {
     GetModuleCommandValues(client2ServerPacket.GetType(), out var module, out var command);
     clientConnector.Send(module, command, client2ServerPacket);
 }