ILockHandle.Acquire Method
Acquire(TimeSpan, CancellationToken)
Synchronously acquires the lock bound to the current handle.
Declaration
bool Acquire(TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeout | Timeout. |
System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken. |
Returns
Type | Description |
---|---|
Boolean |
|