예제 #1
0
 /// <summary>
 /// 释放一个锁
 /// </summary>
 /// <param name="lock">业务锁</param>
 /// <param name="key">锁定标识</param>
 /// <returns>true:释放成功; false:释放失败</returns>
 public static async Task <bool> LockReleaseAsync(this ILock @lock, string key) => await @lock.LockReleaseAsync(key, "1");