Class LockUtil
Utility class for object locking operations.
public static class LockUtil
- Inheritance
-
LockUtil
- Inherited Members
Methods
Lock(object)
Acquires a lock on the specified object and returns a disposable token that releases the lock when disposed.
public static IDisposable Lock(this object obj)
Parameters
obj
objectThe object to lock.
Returns
- IDisposable
A disposable token that releases the lock when disposed.