Пример #1
0
 public override void Dispose()
 {
     base.Dispose();
     if (_receiver != null)
     {
         _receiver.OnReceivedData -= onReceivedData;
         _receiver.Shutdown();
     }
     _receiver = null;
 }
Пример #2
0
 public override void SetConfig(string ip, int port)
 {
     if (_receiver != null)
     {
         _receiver.Shutdown();
     }
     else
     {
         _receiver = new HittReceiver();
     }
     _receiver.Startup(ip, port.ToString(), "100");
 }