开发者

WCF without ASPNetCompatibility mode getting hold of weboperationcontext

开发者 https://www.devze.com 2023-04-11 22:45 出处:网络
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.

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

精彩评论

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