예제 #1
0
 public override LockWaitEvent WaitForLock(bool exclusive, ResourceType resourceType, params long[] resourceIds)
 {
     foreach (long resourceId in resourceIds)
     {
         _requestedLocks.Add(LockRecord.Of(exclusive, resourceType, resourceId));
     }
     return(null);
 }
예제 #2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }
            LockRecord that = ( LockRecord )o;

            return(_exclusive == that._exclusive && _resourceId == that._resourceId && Objects.Equals(_resourceType, that._resourceType));
        }