Ejemplo n.º 1
0
 public IRedLock CreateLock(string resource, TimeSpan expiryTime)
 {
     return(RedLock.Create(
                redisCaches,
                resource,
                expiryTime));
 }
Ejemplo n.º 2
0
 public IRedLock CreateLock(string resource, TimeSpan expiryTime)
 {
     return(RedLock.Create(
                this.loggerFactory.CreateLogger <RedLock>(),
                redisCaches,
                resource,
                expiryTime));
 }
Ejemplo n.º 3
0
 public IRedLock CreateLock(string resource, TimeSpan expiryTime, TimeSpan waitTime, TimeSpan retryTime, CancellationToken?cancellationToken = null)
 {
     return(RedLock.Create(
                redisCaches,
                resource,
                expiryTime,
                waitTime,
                retryTime,
                cancellationToken ?? CancellationToken.None));
 }
Ejemplo n.º 4
0
 public IRedLock CreateLock(string resource, TimeSpan expiryTime, TimeSpan waitTime, TimeSpan retryTime, CancellationToken?cancellationToken = null)
 {
     return(RedLock.Create(
                this.loggerFactory.CreateLogger <RedLock>(),
                redisCaches,
                resource,
                expiryTime,
                waitTime,
                retryTime,
                configuration.RetryConfiguration,
                cancellationToken ?? CancellationToken.None));
 }