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(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); InfoPageConfigurator.Configure(app, x => { x.BaseUrl = "custom-info"; x.ApplicationName = "My Sample Application"; }); }