I'm looking to create an static object that has application scope and
be able to access that static object from my web service.
I understand there are two ways to do this :
1) use the object tag in the global.asax, such as:
<object id="objObject" runat="server" class="TestApplication.MyClass"
scope="Application" />
-- or --
2) Write a codebehind class and inherit from that in the global.asax
My question is, how can I access the static object from within my web
service ?
With method 1), if I access "objObject" from the web service code it
will not compile. I understand this might work if I was coding an
ASP.NET page, but this is a web service.
Any clues?