protected virtual void Dispose(bool Disposing) { if (IsDisposed) { return; } if (Disposing) { UDPServer.Dispose(); TCPServer.Dispose(); } IsDisposed = true; }
protected virtual void Dispose(bool Disposing) { if (IsDisposed) { return; } if (Disposing) { CancellationTokenSource.Dispose(); UDPServer.Dispose(); TCPServer.Dispose(); StatusTimer.Dispose(); } IsDisposed = true; }