Closed
Description
While the library supports .NET Core, it's not already clear what would be needed to support running it with ASP.NET Core.
You can find out when ASP.NET Core is shutting down with the following Startup.cs
(adapted Getting Started):
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
namespace aspnetcoreapp
{
public class Startup
{
public void Configure(IApplicationBuilder app, IApplicationLifetime lifetime) // added the IApplicationLifetime parameter
{
app.Run(context =>
{
return context.Response.WriteAsync("Hello from ASP.NET Core!");
});
lifetime.ApplicationStopping.Register(() => Console.WriteLine("Bye from ASP.NET Core!")); // added this line
}
}
}
But then there's two problems one problem:
- Just calling
JobManager.Stop
wouldn't be enough since the current implementation doesn't block the running tasks (that's a problem not just for ASP.NET Core by the way); It's unclear if shutting down due to idleness plays a role on ASP.NET Core(looks like that's not a problem).
Metadata
Metadata
Assignees
Labels
No labels