From a6c3980dbec5f2501a1470bd58640c0e19f5725c Mon Sep 17 00:00:00 2001 From: Bruno Baia Date: Fri, 26 Oct 2012 16:21:43 +0200 Subject: [PATCH] Add extra documentation for the element --- doc/reference/src/wcf.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/reference/src/wcf.xml b/doc/reference/src/wcf.xml index 55762004..d3250f25 100644 --- a/doc/reference/src/wcf.xml +++ b/doc/reference/src/wcf.xml @@ -243,6 +243,21 @@ The value 'serverAppCalculatorEndpoint' refers to the name of an enpoints in the <client> section of the standard WCF configuration inside of App.config. + + You can also specify the scope of the created channel (default is singleton) + and use classic DI to configure the ChannelFactory<T> instance. + + <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>