LockAsync Method
LockAsync(LockContext)
Acquires the lock for the specified lockContext context.
Declaration
Task LockAsync(LockContext lockContext)
Parameters
| LockContext | lockContext | The LockContext.  | 
    
Returns
| Task | 
Remarks
When the lockContext already holds the lock and the current LockAsync(LockContext)
call is reentrant, the call can throw LockAcquireLimitReachedException if the lock
acquisition limit is already reached.