Hi,
I have a small piece of code that is used by both a web page and by a
web service. I'd like some different behaviour depending on whether it
is called by the page or by the service.
In the piece of code, I can determine the calling source (page/service)
by checking to see if System.Web.Http Context.Current .Session is null
(which it will be for service and won't be for page).
The thing is--I would like for the piece of code to be able to look up a
bit of information at this point. For the page, that bit of information
is stored in the HttpSessionStat e. How can I store this information so
that when the code is called from the web service it can be looked up?
In this case, unfortunately, passing parameters directly isn't a good
option for me.
Thanks for any help you can give.
-Casey