Exemplo n.º 1
0
 /// <summary>
 /// Acquires distributed lock with default expiration time of 1 hour.
 /// </summary>
 public static ILock AcquireDistributedLock(this IDistributedLockProvider distributedLockProvider, string name)
 => distributedLockProvider.AcquireDistributedLock(name, TimeSpan.FromHours(1));