Exemple #1
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHangfireJob job)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();
            app.UseRouting();
            app.UseAuthorization();
            app.UseHangfireDashboard();

            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });

            job.RunJob();
        }
Exemple #2
0
 private void InitializeHangfire(IHangfireJob job)
 {
     job.Initialize();
 }