Graceterm middleware provides implementation to ensure graceful shutdown of AspNet Core applications. The basic concept is: After aplication received a SIGTERM (a signal asking it to terminate), Graceterm will hold it alive till all pending requests are completed or a timeout ocurr.
Install-Package Graceterm -Version 1.0.7
dotnet add package Graceterm --version 1.0.7
<PackageReference Include="Graceterm" Version="1.0.7" />
paket add Graceterm --version 1.0.7