Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

<clientProviders> Element (Template) 

Contains channel sink templates that can be inserted into a client channel call chain.


<clientProviders> 
   <formatter> 
   <provider> 
</clientProviders>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

<formatter>

Contains a formatter sink provider template. Can occur one or more times in a <clientProviders> template element.

<provider>

Contains a sink provider template. Can occur one or more times in a <clientProviders> template element.

Parent Elements

Element Description

channelSinkProviders

Contains templates for client and server channel sink providers.

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

system.runtime.remoting

Contains information about remote objects and channels.

Specifying a formatter sink provider or any number of other channel sink providers here creates a template that you can reference from other <clientProviders> elements elsewhere in the configuration file.

The following configuration file section declares two provider templates.

<channelSinkProviders>
   <clientProviders>
   <provider 
      id="propsetter" 
      type="ChannelSinkPropertySetterProvider, PropsSink" 
   />
   <provider 
      id="logger" 
      type="Logging.LoggingClientChannelSinkProvider, LoggingSinks" 
   />
   </clientProviders>
</channelSinkProviders>

Elsewhere in the configuration file, these providers can be specified in a <clientProviders> element, as shown in the following example.

<channels>
   <channel>
      <clientProviders>
         <provider ref="logger"/>
         <provider ref="propsetter"/>
      </clientProviders>
   <channel>
</channels>

Community Additions

ADD
Show:
© 2015 Microsoft