Could we use the [application lifetime services](https://docs.microsoft.com/en-us/dotnet/core/extensions/generic-host) to inject the shutdown handler so that the graceful shutdown is done embedded in the created host?
Could we use the application lifetime services to inject the shutdown handler so that the graceful shutdown is done embedded in the created host?