CSharpFeeds - All your C# feeds in one place.

Thursday, July 01, 2010

Config-free IHttpModule Registration

by via Nikhil Kothari's Weblog on 7/1/2010 2:29:57 PM

The ASP.NET pipeline allows HTTP modules to plug in into the request processing lifecycle and do work at various stages. For example, output caching, authentication, authorization etc. are all implemented as HTTP modules. However one of the problems is that HTTP modules must be registered in configuration. This is a little painful for writing framework components where an HTTP module is essentially an implementation detail. You don't want every app developer using your framework to have to add ...

[ read more ]

WeakReference Event Handlers

by Paul Stovell via Paul Stovell on 7/1/2010 11:36:52 AM

A good rule of thumb to live by is that long-lived objects should avoid referencing short-lived objects. The reason for this is that the .NET garbage collector uses a mark and sweep algorithm to detemine if it can delete and reclaim an object. If it determines that a long-lived object should be kept alive (because you are using it, or because it's in a static field somewhere), it also assumes anything it references is being kept alive. Conversely, going the other way is fine - a short-lived ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us