<clientProviders> Element (Template)

This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the  Windows Communication Foundation (WCF).

Contains channel sink templates that can be inserted into a client channel call chain. This element may occur in an application configuration file, machine configuration file.


<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>



Copyright © 2007 by Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft