Configuring a Custom Scope Ranker
A client application adds a reference to the custom scope provider class by using the <scopeRanking> element in the <channelFactory> section of the <cis.serviceModel> section of a configuration file.
The following code example shows the default scope ranking configuration.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
...
<cis.serviceModel>
<channelFactory>
...
<scopeRanking type="Microsoft.ConnectedIndustry.ServiceModel.Application.ScopeRanking,Microsoft.ConnectedIndustry.ServiceModel.Application,Version=1.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35">
</scopeRanking>
...
</channelFactory>
</cis.serviceModel>
...
</configuration>
To use a custom scope provider class named DCS.Samples.Extensions.MyCustomScopeRanker in an assembly named DCSExtensions, change the <scopeRanking> element as shown in the following code example.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
...
<cis.serviceModel>
<channelFactory>
...
<scopeProvider type="DCS.Samples.Extensions.MyCustomScopeRanker, DCSExtensions" />
...
</channelFactory>
</cis.serviceModel>
...
</configuration>
Show: