protected override void Dispose(bool disposing) { if (_isDisposed) { return; } _isDisposed = true; if (disposing) { _socket.Dispose(); _serviceManager.Dispose(); _messagingManager.Dispose(); } }
protected override void Dispose(bool disposing) { if (_disposed) { return; } _disposed = true; if (disposing) { _tcpClient.Dispose(); _networkStream.Dispose(); _messagingManager.Stop(); _messagingManager.Dispose(); } }
protected override void Dispose(bool disposing) { this.Exit(); if (_isDisposed) { return; } _isDisposed = true; if (disposing) { _tcpClient.Dispose(); _messagingManager.Stop(); _messagingManager.Dispose(); } }