예제 #1
0
        /// <summary>
        /// Runs when the web application is started.
        /// </summary>
        protected void Application_Start()
        {
            // Trace listeners should always be the first thing here.
            RegisterTraceListeners(Trace.Listeners);

            Trace.TraceInformation(string.Format("MvcApplication.Application_Start(): app started! [Debug={0}]", DebugConfig.IsDebug));

            AreaRegistration.RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);

            RouteTable.Routes.MapHubs();
            RegisterRoutes(RouteTable.Routes);

            ModelBinders.Binders.DefaultBinder  = new CerebelloDefaultBinder();
            DefaultModelBinder.ResourceClassKey = "ModelStrings";

            // Will create a thread to send notifications
            NotificationsHelper.CreateNotificationsJob();

            SetupDependencyInjector();
        }