public override void Dispose() { base.Dispose(); if (_receiver != null) { _receiver.OnReceivedData -= onReceivedData; _receiver.Shutdown(); } _receiver = null; }
public override void SetConfig(string ip, int port) { if (_receiver != null) { _receiver.Shutdown(); } else { _receiver = new HittReceiver(); } _receiver.Startup(ip, port.ToString(), "100"); }