void EventsManager_OnApplication_PreInitialize(object sender, Web.Interfaces.Events.ApplicationArgs e) { //StackExchange.Profiling.EntityFramework6.MiniProfilerEF6.Initialize(); MiniProfiler.Settings.Results_Authorize = IsUserAllowedToSeeMiniProfilerUI; MiniProfiler.Settings.Results_List_Authorize = IsUserAllowedToSeeMiniProfilerUI; //动态注册httpModule //DynamicModuleUtility.RegisterModule(typeof(MiniProfilterStartupModule)); }
void EventsManager_OnApplication_PreInitialize(object sender, Web.Interfaces.Events.ApplicationArgs e) { DynamicModuleUtility.RegisterModule(typeof(Glimpse.AspNet.HttpModule)); }
void EventsManager_OnApplication_InitializeComplete(object sender, Web.Interfaces.Events.ApplicationArgs e) { //RouteTable.Routes.Add(new Route("glimpse.axd", new GlimpseRouteHandler())); }