Microsoft.Extensions.Hosting.IHostLifetime
Tracks host lifetime.
Called from StopAsync to indicate that the host is stopping and it's time to shut down.
Called at the start of StartAsync which will wait until it's complete before
continuing. This can be used to delay startup until signaled by an external event.