Add extra documentation for the <wcf:channelFactory/> element
This commit is contained in:
@@ -243,6 +243,21 @@
|
||||
<para>The value 'serverAppCalculatorEndpoint' refers to the name of an
|
||||
enpoints in the <client> section of the standard WCF configuration
|
||||
inside of App.config.</para>
|
||||
|
||||
<para>You can also specify the scope of the created channel (default is singleton)
|
||||
and use classic DI to configure the ChannelFactory<T> instance.</para>
|
||||
|
||||
<programlisting language="myxml"><objects xmlns="http://www.springframework.net"
|
||||
xmlns:wcf="http://www.springframework.net/wcf">
|
||||
|
||||
<wcf:channelFactory id="serverAppCalculator"
|
||||
channelType="Spring.WcfQuickStart.ICalculator, Spring.WcfQuickStart.Contracts"
|
||||
endpointConfigurationName="serverAppCalculatorEndpoint">
|
||||
<wcf:property name="IsSingleton" value="false" />
|
||||
<wcf:property name="Credentials.Windows.ClientCredential" value="Domain\Login:Password" />
|
||||
</wcf:channelFactory>
|
||||
|
||||
</objects></programlisting>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user