예제 #1
0
 public async Task <IRedLock> CreateLockAsync(string resource, TimeSpan expiryTime)
 {
     return(await RedLock.CreateAsync(
                redisCaches,
                resource,
                expiryTime).ConfigureAwait(false));
 }
예제 #2
0
 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));
 }
예제 #3
0
 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));
 }