public bool HasLock(string key, LockReason check) { var lockReason = GetLockReason(key); return(InternalHasLock(lockReason, check)); }
private static bool InternalHasLock(LockReason lockReason, LockReason check) { return((lockReason & check) != 0); }