protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
Page handler = HttpContext.Current.Handler as Page;
if (handler != null)
{
IUnityContainer container = SessionContainer;
if (container != null)
{
container.BuildUp(handler.GetType(), handler);
}
}
}