SHARE
TWEET

Untitled

a guest Jun 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top