public async Task <IRedLock> CreateLockAsync(string resource, TimeSpan expiryTime) { return(await RedLock.CreateAsync( redisCaches, resource, expiryTime).ConfigureAwait(false)); }
public async Task <IRedLock> CreateLockAsync(string resource, TimeSpan expiryTime) { return(await RedLock.CreateAsync( this.loggerFactory.CreateLogger <RedLock>(), redisCaches, resource, expiryTime, retryConfiguration : configuration.RetryConfiguration).ConfigureAwait(false)); }
public async Task <IRedLock> CreateLockAsync(string resource, TimeSpan expiryTime, TimeSpan waitTime, TimeSpan retryTime, CancellationToken?cancellationToken = null) { return(await RedLock.CreateAsync( redisCaches, resource, expiryTime, waitTime, retryTime, cancellationToken ?? CancellationToken.None).ConfigureAwait(false)); }