예제 #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));
 }
예제 #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));
 }
예제 #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);
 }