How to get a PerSession context with WCF?
- by christophe31
Hi,
I got running a WCF service with custom binding, for now it use httpTransport.
<customBinding>
<binding name="myHttpBindingConf">
<context contextManagementEnabled="true" protectionLevel="None"
contextExchangeMechanism="ContextSoapHeader" />
<textMessageEncoding/>
<httpTransport useDefaultWebProxy="false" />
</binding>
</customBinding>
I've Made a custom IExtension<OperationContext> to stock my data in a specific context by following those instructions:
http://hyperthink.net/blog/a-simple-ish-approach-to-custom-context-in-wcf/
I would like to use a ContextMode.PerSession context.
Which transport choose to get Session management?
How to set new transport in place and letting object discovery enabled?
How to force a PerSession context?