[We're now discussing two unrelated things in parallel]
Right, same thing as we discussed last week Eric. The problem is that the ASP.NET runtime doesn't really support such event. The closest we can get is to register a module and run the logic in its Init method (with checks to make sure it only
happens once, as module can get instantiated multiple times).
But unfortunately, the only official way of registering a module is via config, and we don't want to do that. There is actually another way using a method from Microsoft.Web.Infrastructure.dll (which comes with WebMatrix & MVC3 betas): Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule.
Eventually, this will make its way into the framework.
So bottom line is in the short term: it may not be that easy to support such event.