mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #9078] Migrate to IHost #11968
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/9078
State: closed
Merged: Yes
Redo of #7347
Using
IHostandIHostBuilderis the recommended way to configure the application host.When using
IHost, it is no longer possible to use DI in Startup.cs, except forIConfiguration,IHostEnvironment, andIWebEnvironment, so startup initialization is now done manuallyThis should decrease the startup time of Jellyfin since the ServiceProvider is no longer created twice, but I haven't measured it.