Exemplo n.º 1
0
 public void Configuration(IAppBuilder app)
 {
     //ServiceResolver.ServiceCollection.AddSingleton<IStartup, Startup>();
     ConfigureServices(ServiceResolver.ServiceCollection);
     ServiceResolver.Build();
     app.UseDomainAssemblyResolver();
     app.UseHangfireServer(new BackgroundJobServerOptions
     {
         //ServerName = $"{Environment.MachineName}.{Guid.NewGuid().ToString()}",
         ServerName  = $"{Environment.MachineName}.NewVersion",
         WorkerCount = Environment.ProcessorCount * 2
     }).UseHangfireDashboard();
     app.UseFolderWatchdog();
 }