Ejemplo n.º 1
0
 private void OnReceiveCommandHandler(IConnector connector, ICommandArg arg)
 {
     try
     {
         if (connector != null) { _commands.Execute(connector, arg); }
     }
     catch (Exception ex) { NetLogger.Log(ex, LogType.Exception); }
 }
Ejemplo n.º 2
0
 private void OnReceveDataHandler(IConnector connector, byte[] data)
 {
     try
     {
         if (connector != null)
         {
             _commands.Execute(connector, data);
         }
     }
     catch (Exception ex) { NetLogger.Log(ex.ToString(), LogType.Exception); }
 }