/// <summary>Tells the DeadlockDetector that a thread is about to block waiting for a lock.</summary> /// <param name="lockObject">The lock that the thread is about to block on.</param> /// <param name="acquiringExclusively">true if the thread is acquiring the lock exclusively.</param> /// <returns>An object that tells the DeadlockDetector that the thread is no longer blocked.</returns> public static IDisposable BlockForLock(ResourceLock lockObject, Boolean acquiringExclusively) { return(s_deadlockDetector.BlockForLockI(lockObject, acquiringExclusively)); }