Exemplo n.º 1
0
 public static void Send(this ServerConnectors serverConnectors, int contextId, IServer2ClientPacket server2ClientPacket)
 {
     GetModuleCommandValues(server2ClientPacket.GetType(), out var module, out var command);
     serverConnectors.Send(contextId, module, command, server2ClientPacket);
 }
Exemplo n.º 2
0
 internal ServerConnectorContext(int id, ServerConnectors serverConnectors)
 {
     Id = id;
     _serverConnectors = serverConnectors;
     _connectedTime    = DateTime.UtcNow;
 }
Exemplo n.º 3
0
 public static void Send(this ServerConnectors serverConnectors, Func <ServerConnectorContext, bool> filter, IServer2ClientPacket server2ClientPacket)
 {
     GetModuleCommandValues(server2ClientPacket.GetType(), out var module, out var command);
     serverConnectors.Send(filter, module, command, server2ClientPacket);
 }