Configuring a Custom Endpoint Selector
A client application adds a reference to the custom endpoint selector class by using the <endpointSelector> element in the <channelFactory> section of the <cis.serviceModel> section of a client application configuration file. The following example shows how to add the endpoint selector implemented by a class called DCS.Samples.Extensions.MyCustomEndpointSelector in an assembly called DCSExtensions to the client configuration file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
...
<cis.serviceModel>
<channelFactory>
...
<endpointSelector type="DCS.Samples.Extensions.MyCustomEndpointSelector, DCSExtensions" />
...
</channelFactory>
</cis.serviceModel>
...
</configuration>
Note: |
|---|
| If you do not specify an endpoint selector, the client proxy uses the Microsoft.ConnectedIndustry.ServiceModel.BasicEndpointSelector class. |
Show:
Note: