Ads by The Lounge
My name is Oren Eini and you can reach me by email: Ayende@ayende.com Cell: +972 52-548-6969 / +1 201-820-0222 About me
Suggest new posts
NHibernate Homepage
Did I miss something? Since when can you do it?
It works :-)
Print | posted on Saturday, January 17, 2009 11:40 PM
You can use the constructor in this way since .NET 2.0http://msdn.microsoft.com/en-us/library/c2zzwa6y(VS.80).aspxAnd you can set the Current property since at least .NET 1.1msdn.microsoft.com/.../....web.httpcontext.current(VS.71).aspxI have actually used this method to test some of my code that relies on the HttpContext being initialized.
Can;t remember how long ago, but I have used something like this - but then stopped doing things like this as I tried to be more "pure" ... aint it amazing what weird things the framework does let you do, when it won't let you do really basic stuff due to paranoia from the FCL team
Powered by: Copyright © Ayende Rahien