Share via


<clientProviders> Element (Template) 

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

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

Attributes and Elements

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.

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>

See Also

Reference

Remoting Settings Schema

Concepts

Sinks and Sink Chains