EndpointDispatcher.FilterPriority Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the priority of the ContractFilter and the AddressFilter combination when the ChannelDispatcher is selecting endpoints.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public int FilterPriority { get; set; }

Property Value

Type: System.Int32

The priority of the filter.

The ChannelDispatcher combines the AddressFilter value with the ContractFilter value to determine whether to route a message to this endpoint.

In the case where two EndpointDispatcher objects that match can process a message, the FilterPriority property is used to select an endpoint.

If two endpoints can process a message and the value of their FilterPriority property matches, a System.ServiceModel.Dispatcher.MultipleFilterMatchesException is thrown.

.NET Framework
Available since 3.0
Return to top