Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public void ConfigureServices (IServiceCollection services) {
  2.  
  3.  
  4. services.AddHangfire(configuration=>{
  5. configuration.UseSqlServerStorage("ConnectionStrings:DefaultConnection");
  6. });
  7.  
  8.  
  9. services.AddMvc();
  10. // Add framework services.
  11. }
  12.  
  13. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
  14. public void Configure (IApplicationBuilder app, IHostingEnvironment env) {
  15.  
  16. app.UseHangfireServer();
  17. app.UseHangfireDashboard();
  18.  
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement