示例#1
0
 public override async Task <ICacheLock> BeginCacheLockAsync(string resourceName, string key, int retryCount = 0, TimeSpan retryDelay = new TimeSpan())
 {
     return(await LocalCacheLock.CreateAndLockAsync(this, resourceName, key, retryCount, retryDelay).ConfigureAwait(false));
 }
示例#2
0
 public override ICacheLock BeginCacheLock(string resourceName, string key, int retryCount = 0, TimeSpan retryDelay = new TimeSpan())
 {
     return(LocalCacheLock.CreateAndLock(this, resourceName, key, retryCount, retryDelay));
 }