开发者

WCF without ASPNetCompatibility mode getting hold of weboperationcontext

Although i know that WCF is transport-agnostic and without setting AspNe开发者_如何学运维tCompatibility mode i never get the HTTP context. What all values can i get from weboperation context.

I my application we have been using ASMX and by default we get hold of httpcontext.current with that but we decided to move to WCF. But if we move to WCF and set AspNetCompatibility mode(to get hold of httpcontext) its same as calling asmx service. Is there a way i can pass some values from client(JQuery) for the first time and then set WebOperationContext and use it for the subsequent request.

Cheers


Do you want to support sessions in the WCF service ?. Is that what you mean ? WCF supports sessions altough is not a good practice to use them.

You can find more information about this here, http://msdn.microsoft.com/en-us/library/ms733040.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜