FUTURE POSTS
- Building a social media platform without going bankrupt: Part I–Laying the numbers - about one hour from now
- Building a social media platform without going bankrupt: Part II–Accepting posts - about one day from now
- Building a social media platform without going bankrupt: Part III–Reading posts - 2 days from now
- Building a social media platform without going bankrupt: Part IV–Caching and distribution - 3 days from now
- Building a social media platform without going bankrupt: Part V–Handling the timeline - 4 days from now
And 5 more posts are pending...
There are posts all the way to Feb 05, 2021
Comments
You can use the constructor in this way since .NET 2.0
http://msdn.microsoft.com/en-us/library/c2zzwa6y(VS.80).aspx
And you can set the Current property since at least .NET 1.1
msdn.microsoft.com/.../....web.httpcontext.current(VS.71).aspx
I 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
Comment preview