DynamicModuleUtility
Posted by: K. Scott Allen,
on 28 Feb 2011 |
View original | Bookmarked: 1 time(s)
One of the interesting side-effects of installing ASP.NET MVC 3 is the appearance of Microsoft.Web.Infrastructure in the GAC. Inside the assembly is a DynamicModuleUtility class that will let you do the following: using System;
using System.Web;
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
[assembly:PreApplicationStartMethod(typeof(MyAppStart), "Start")]
public class CoolModule : IHttpModule
{
// implementation not important
// imagine something cool here
}
public static class...