public void Configuration(IAppBuilder app) { ConfigureAuth(app); DIConfig.Setup(); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard(); app.UseHangfireServer(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); LogProvider.SetCurrentLogProvider(new CustomHangfireLogProvider()); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard(); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 1 }); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard(); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); var options = new DashboardOptions { AppPath = VirtualPathUtility.ToAbsolute("/OptimizationRequest/Index") }; app.UseHangfireDashboard("/RouteDeliveryOptimizationJobs", options); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard("/hangfire", new DashboardOptions { AuthorizationFilters = new[] { new HangfireAuthorizationFilter() } }); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); Log.Logger = new LoggerConfiguration().WriteTo.RollingFile(@"C:\Serilogs\RouteDelivery-{Date}.txt") .CreateLogger(); Log.Information("Route Delivery Started"); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard(); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); var options = new SqlServerStorageOptions { QueuePollInterval = TimeSpan.FromSeconds(60), // Default value 15 PrepareSchemaIfNecessary = false, }; GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3", options); app.UseHangfireDashboard(); app.UseHangfireServer(); DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); Log.Logger = new LoggerConfiguration().WriteTo.RollingFile(@"C:\Serilogs\RouteDelivery-{Date}.txt") .CreateLogger(); Log.Information("Route Delivery Started"); GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3"); app.UseHangfireDashboard(); var options = new BackgroundJobServerOptions { Queues = new[] { "critical", "default" } }; app.UseHangfireServer(options); //new BackgroundJobServer(options) DIConfig.Setup(); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); DIConfig.Setup(); }