Unity and ASP.NET modules with property injection
===

Is there a half-decent way of using DI in ASP.NET IHttpModules?

Since I don't control the object creation, how do I "BuildUp"?

The standard google search comes up with this ... I'm not ok with it, this is not in my opinion a decent solution, doing a BuildUp for every request. What I want is to call BuildUp in my Global.asax code, or maybe in the Init method of my module and use Action<> or Func<> to late bind the object resolution.

        private void OnPreRequestHandlerExecute(object sender, EventArgs e)
        {
            IHttpHandler handler = HttpContext.Current.Handler;
            HttpContext.Current.Application.GetContainer().BuildUp(handler.GetType(), handler);
        }

Let me know if you can think of a way