Author: you've been HAACKED | Posted on: 6/3/2011 4:06:09 AM | Views : 828

At the risk of getting punched in the face by my friend Miguel, I'm not afraid to admit I'm a fan of responsible use of dependency injection. However, for many folks, attempting to use DI runs into a roadblock when it comes to ASP.NET HttpModule. In the past, I typically used " Poor man's DI " for this. I wasn't raised in an affluent family, so I guess I don't have as much of a problem with this approach that others do. However, when the opportunity for something better comes along, I'll take it Daddy Warbucks . I was refactoring some code in Subtext when it occurred to me that the new ability to register HttpModules dynamically using the PreApplicationStartMethodAttribute could come in very handy. Unfortunately, the API only allows for registering...(read more) ...

Go to the complete details ...