public PrefixEndpointAddressMessageFilter(EndpointAddress address, bool includeHostNameInComparison)
 {
     if (address == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("address");
     }
     this.address = address;
     this.helper  = new EndpointAddressMessageFilterHelper(this.address);
     this.hostNameComparisonMode = includeHostNameInComparison ? HostNameComparisonMode.Exact : HostNameComparisonMode.StrongWildcard;
     this.addressTable           = new UriPrefixTable <object>();
     this.addressTable.RegisterUri(this.address.Uri, this.hostNameComparisonMode, new object());
 }
 public EndpointAddressMessageFilter(EndpointAddress address, bool includeHostNameInComparison)
 {
     if (address == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("address");
     }
     this.address = address;
     this.includeHostNameInComparison = includeHostNameInComparison;
     this.helper = new EndpointAddressMessageFilterHelper(this.address);
     if (includeHostNameInComparison)
     {
         this.comparer = HostUriComparer.Value;
     }
     else
     {
         this.comparer = NoHostUriComparer.Value;
     }
 }