IApplicationLifetime no longer injected into generic Startup
Open
affected-very-few
area-hosting
area-networking
enhancement
severity-minor
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
There's a short list of services that can be injected by the generic web host into Startup's constructor.
https://github.com/aspnet/AspNetCore/blob/9f71e602837b164e6f525ae33821d1d95ea29f6b/src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs#L361-L375
IApplicationLifetime is a common host service that should also be available. Maybe it should also be available on Web/HostBuilderContext.
@davidfowl @glennc
Contributor guide
Assessment
This issue has not been assessed yet.