Esempio n. 1
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
            DIConfig.Setup();
            GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3");

            app.UseHangfireDashboard();
            app.UseHangfireServer();
        }
Esempio n. 2
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);

            LogProvider.SetCurrentLogProvider(new CustomHangfireLogProvider());

            GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3");

            app.UseHangfireDashboard();
            app.UseHangfireServer();

            DIConfig.Setup();
        }
Esempio n. 3
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);

            GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute {
                Attempts = 1
            });

            GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3");

            app.UseHangfireDashboard();
            app.UseHangfireServer();

            DIConfig.Setup();
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);

            GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireR3");

            app.UseHangfireDashboard("/hangfire", new DashboardOptions
            {
                AuthorizationFilters = new[] { new HangfireAuthorizationFilter() }
            });

            app.UseHangfireServer();

            DIConfig.Setup();
        }
Esempio n. 6
0
        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();
        }
Esempio n. 7
0
        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();
        }
Esempio n. 8
0
        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();
        }
Esempio n. 9
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);

            DIConfig.Setup();
        }