///------------------------------------------------------------------------------------------------- /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged /// resources. /// </summary> ///------------------------------------------------------------------------------------------------- public void Dispose() { if (_lockInfo != null) { _lockManager.ReleaseLock(_lockInfo); } _lockInfo = null; _lockManager = null; }
internal LockWrapper(LockManager lockManager = null, LockInfo lockInfo = null) { _lockInfo = lockInfo; _lockManager = lockManager; }