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(); }
private void InitializeHangfire(IHangfireJob job) { job.Initialize(); }