示例#1
0
        public bool HasLock(string key, LockReason check)
        {
            var lockReason = GetLockReason(key);

            return(InternalHasLock(lockReason, check));
        }
示例#2
0
 private static bool InternalHasLock(LockReason lockReason, LockReason check)
 {
     return((lockReason & check) != 0);
 }