Пример #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            AdRotator.Initialize(Config.Wtf.AdsBaseDirectory);
        }
Пример #2
0
        protected void Application_Start()
        {
            if (Config.Wtf.Logs.Enabled)
            {
                Logger.AddMessenger(new FileSystemMessenger(Config.Wtf.Logs.BaseDirectory, Config.Wtf.Logs.MinimumLevel));
            }

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            AdRotator.Initialize(Config.Wtf.AdsBaseDirectory);
        }
Пример #3
0
        protected void Application_Start()
        {
            if (Config.Wtf.Logs.Enabled)
            {
                Logger.AddMessenger(new FileSystemMessenger(Config.Wtf.Logs.BaseDirectory, Config.Wtf.Logs.MinimumLevel));
            }

            Inedo.Diagnostics.Loupe.Enable("TheDailyWtf", "WtfWebApp", typeof(MvcApplication).Assembly.GetName().Version);

            GlobalFilters.Filters.Add(new MvcRequestMonitorAttribute());
            GlobalFilters.Filters.Add(new UnhandledExceptionAttribute());

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            AdRotator.Initialize(Config.Wtf.AdsBaseDirectory);
        }