NetCoreRateLimit/AsyncKeyLock/AsyncKeyLock.cs
/// <summary>
/// Locks the current thread in write mode asynchronously.
/// </summary>
/// <param name="key">The key identifying the specific object to lock against.</param>
/// <returns>
/// The <see cref="Task{IDisposable}"/> that will release the lock.
/// </returns>
Locks the current thread in write mode asynchronously.
Locks the current thread in write mode asynchronously .
public async Task<IDisposable> WriterLockAsync(string key)
        {
            AsyncKeyLockDoorman doorman = GetDoorman(key);
            return await doorman.WriterLockAsync().ConfigureAwait(false);
        }
public async Task < IDisposable > WriterLockAsync ( string key ) { AsyncKeyLockDoorman doorman = GetDoorman ( key ) ; return await doorman . WriterLockAsync ( ) . ConfigureAwait ( false ) ; }
Locks the current thread in write mode asynchronously.
Locks the current thread in write mode asynchronously .
The  that will release the lock.
The that will release the lock .
key
string
The key identifying the specific object to lock against.
The key identifying the specific object to lock against .