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>