I am currently using a traditional (ASP.NET) web service but want to be mindfull of keeping my code compatible with WCF. What I want to do is in my Service Method I want to decode a bit of imformation and use this info in my business logic that is
called from the web service.
Rather than pass the info in to every class that my web service calls I thought I could use something like HttpContext.
Here's what I thought:
HttpContext.Current["mycalldata"] = new mydata();
mydata d = HttpContext.Current["mycalldata"] as mydata;
<do something using mydata>
My worry is that when using WCF over tcp, HttpContext won't be there. Is there a better way to store some data for the duration of the web service call only and access that data from within the business logic?
Thanks for your help
View Complete Post