protected virtual void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _lockStrategy.Exit(); _lockStrategy = null; } // TODO: free unmanaged resources (unmanaged objects) and override Finalize() below. // TODO: set large fields to null. } _isDisposed = true; }
public WatchLock(ForcefulLockStrategy lockStrategy) { _lockStrategy = lockStrategy; }