protected override void Dispose(bool explicitDisposing) { if (explicitDisposing) { if (_waitStateHolder != null) { _waitStateHolder.Dispose(); _waitStateHolder = null; } } base.Dispose(explicitDisposing); }
protected override void Dispose(bool explicitDisposing) { // ProcessWaitState will dispose the handle this.SafeWaitHandle = null; if (explicitDisposing) { if (_waitStateHolder != null) { _waitStateHolder.Dispose(); _waitStateHolder = null; } } base.Dispose(explicitDisposing); }