Since IApplicationLifetime is not added to the manifest, while calling HostingServices.Create() before invoking ConfigureServices() we end up creating a new instance of IApplicationLifetime. So the Cancellationtoken that hosting triggers on appshutdown is different from what the app is exposed. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNet.Hosting.Tests | ||
| Microsoft.AspNet.TestHost.Tests | ||