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)); }
internal override bool TryGetFieldIndex(string fieldName, out int index) { for (int i = 0; i < MessageInfoSchema.FieldDescriptors.Length; i++) { if (PagedObjectSchema.CompareString(QueueInfoSchema.FieldDescriptors[i].Name, fieldName) == 0) { index = i; return(true); } } index = -1; return(false); }