Compartir a través de


<clientProviders> Element (Template)

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

<configuration>
   <system.runtime.remoting>
      <channelSinkProviders>
         <clientProviders>

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

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.

Remarks

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.

Example

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>

Requirements

Configuration Files: Application configuration file, machine configuration file (Machine.config)

See Also

Remoting Settings Schema | Sinks and Sink Chains