protected virtual void Dispose(bool disposing) { if (!disposed) { DisposeUtils.DisposeSafely(ref socket); disposed = true; } }
public void Dispose() { if (!disposed) { DisposeUtils.DisposeSafely(ref proxy); disposed = true; } }
public void Dispose() { if (!disposed) { socket?.Shutdown(SocketShutdown.Both); DisposeUtils.DisposeSafely(ref socket); DisposeUtils.DisposeSafely(ref eventArgs); disposed = true; } }
/// <inheritdoc/> protected override void Dispose(bool disposing) { if (!disposed) { DisposeUtils.DisposeSafely(ref timer); disposed = true; } base.Dispose(disposing); }
private void Dispose(bool managed) { if (_currentlyRegistered) { User32.UnregisterHotKey(_messageWindow.Handle, _hotKeyId); _currentlyRegistered = false; } if (managed) { DisposeUtils.Dispose(ref _messageWindow); } }
public void Dispose() { if (!disposed) { socket?.Shutdown(SocketShutdown.Both); @event?.Set(); DisposeUtils.DisposeSafely(ref socket); DisposeUtils.DisposeSafely(ref sendEventArgs); DisposeUtils.DisposeSafely(ref receiveEventArgs); DisposeUtils.DisposeSafely(ref @event); disposed = true; } }
public void Dispose() { DisposeUtils.DisposeIfDisposable(_messageProcessingStrategy); }
public void Dispose() { DisposeUtils.DisposeIfDisposable(_workItemManager); }