public bool Match(QueueIdentity matchPattern, MatchOptions matchOptions) { if (!PagedObjectSchema.MatchString(this.NextHopDomain, matchPattern.nextHopDomain, matchOptions)) { return(false); } if (string.IsNullOrEmpty(this.server)) { throw new InvalidOperationException(); } return(string.IsNullOrEmpty(matchPattern.server) || this.server.Equals(matchPattern.server, StringComparison.OrdinalIgnoreCase)); }