예제 #1
0
 public bool Matches(Guid id, IdentityMatchingScope matchingScope) {
    bool result = false;
    if (matchingScope >= IdentityMatchingScope.LocalIdentity) {
       result |= id == Id;
    }
    if (matchingScope >= IdentityMatchingScope.Broadcast) {
       result |= id == Guid.Empty;
    }
    return result;
 }
예제 #2
0
        public bool Matches(Guid id, IdentityMatchingScope matchingScope)
        {
            bool result = false;

            if (matchingScope >= IdentityMatchingScope.LocalIdentity)
            {
                result |= id == Id;
            }
            if (matchingScope >= IdentityMatchingScope.Broadcast)
            {
                result |= id == Guid.Empty;
            }
            return(result);
        }