AddressFilterMode Enumeration
Specifies the type of match semantics used by the dispatcher to route incoming messages to the correct endpoint.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| Any | Indicates a filter that matches on any address of an incoming message. | |
| Exact | Indicates a filter that does an exact match on the address of an incoming message. | |
| Prefix | Indicates a filter does the longest prefix matches on the address of an incoming message. |
The value of the AddressFilterMode enumeration is set on the AddressFilterMode property.
The longest prefix match criterion specified by Prefix requires that the destination address be matched by the largest number of leading address bits in the filter. The default value is Exact.
[ServiceBehavior(AddressFilterMode = AddressFilterMode.Prefix)] public class CalculatorService : ICalculator { public double Add(double n1, double n2) { return n1 + n2; } public double Subtract(double n1, double n2) { return n1 - n2; } public double Multiply(double n1, double n2) { return n1 * n2; } public double Divide(double n1, double n2) { return n1 / n2; } }
Available since 3.0