Thanks for the replies. What I didn't want was to use System.Web so I created my own Context using CallContext (similar to what HTTPContext does).
What I don't know is does CallContext travel if I call a COM+ (ServicedComponent) object? -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Heath Sent: Friday, April 01, 2005 11:53 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] ThreadLocal storage > though you need to reference the web assembly by then. > FWIW I suspect asp.net is using threadlocal storage for its context. If you bother to reference the web assembly, you could use the static methods CallContext.GetData and CallContext.SetData. Reflector shows that HttpContext.Current is being retrieved from these methods. // Ryan =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
