Hi,
True, but then dll doesn't have to process as if it is a web application -
because it's not.
--
Dave Sexton
http://davesexton.com/blog http://www.codeplex.com/DocProject (Sandcastle in Visual Studio 2005)
"Hans Kesting" <ne***********@spamgourmet.comwrote in message
news:c0*************************@news.microsoft.co m...
>Hi,
System.Web.HttpContext.Current will return null in a non-web
application.
True, but it will also return null if "this" call is not due to a
webrequest
(for instance something run by a timer or in an extra thread)
Hans Kesting
>"Hamed" <ha***@raymehr.comwrote in message
news:OK**************@TK2MSFTNGP06.phx.gbl...
>>Hello
I have a managed class library (written in C#) that is used both in
ASP.NET and Windows applications. How can I determine which platform
has been called a class method in this library.
Thanks in advance.
Hamed