Exemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(System.Web.Http.GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);


            //Apply schema changes
            //RepositoryContext.Current.System.ApplySchemaChanges();

            //Setup infopage configuration

            InfoPageConfigurator.Configure(c => {
                c.ApplicationName = "Wlog";
            });


            JobStorage.Current = new MemoryStorage();
            //Hangfire.GlobalConfiguration.Configuration.UseNLogLogProvider();
            _backgroundJobServer = new BackgroundJobServer();



            RecurringJob.AddOrUpdate(() => LogQueue.Current.Run(), "*/1 * * * *");

            SystemDataHelper.InsertRoles();
            SystemDataHelper.EnsureSampleData();
        }