<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 |
|---|---|
| Contains a formatter sink provider template. Can occur one or more times in a <clientProviders> template element. | |
| 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. |
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>