How to get a PerSession context with WCF?
Posted
by christophe31
on Stack Overflow
See other posts from Stack Overflow
or by christophe31
Published on 2010-06-05T07:31:26Z
Indexed on
2010/06/05
7:42 UTC
Read the original article
Hit count: 471
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?
© Stack Overflow or respective owner