Lots of Hangfire attempts to solve the lock issue. Not sure how to fix it. Added some APIs for streams.

This commit is contained in:
Joseph Milazzo 2021-03-15 13:49:13 -05:00
parent bb0a59448f
commit fad4ca4414
10 changed files with 89 additions and 28 deletions

View file

@ -64,10 +64,9 @@ namespace API
services.AddResponseCaching();
services
.AddStartupTask<WarmupServicesStartupTask>()
.TryAddSingleton(services);
// services
// .AddStartupTask<WarmupServicesStartupTask>()
// //.TryAddSingleton(services);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -134,7 +133,7 @@ namespace API
{
Console.WriteLine("Server is shutting down. Going to dispose Hangfire");
//this code is called when the application stops
//TaskScheduler.Client.Dispose();
TaskScheduler.Client.Dispose();
System.Threading.Thread.Sleep(1000);
}
}