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. |
||
|---|---|---|
| .. | ||
| Fakes | ||
| testroot | ||
| HostingEngineTests.cs | ||
| HostingServicesFacts.cs | ||
| HostingUtilitiesTests.cs | ||
| HttpContextFactoryFacts.cs | ||
| Microsoft.AspNet.Hosting.Tests.kproj | ||
| StartupManagerTests.cs | ||
| UseRequestServicesFacts.cs | ||
| project.json | ||