mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #10261] [MERGED] Use IHostLifetime for Shutdown/Restart #12226
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#12226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/10261
Author: @barronpm
Created: 9/23/2023
Status: ✅ Merged
Merged: 10/3/2023
Merged by: @Bond-009
Base:
master← Head:ihostlifetime📝 Commits (5)
1d8c3e0Don't log unhandled exceptions twice493de32Use IHostLifetime to handle restarting and shutting down59ec06cClear active sessions on application stoppingf746db9Re-add shutdown/restart methodsab07902Apply suggestions from code review📊 Changes
10 files changed (+101 additions, -294 deletions)
View changed files
📝
Emby.Server.Implementations/ApplicationHost.cs(+18 -107)📝
Emby.Server.Implementations/Plugins/PluginManager.cs(+10 -12)📝
Emby.Server.Implementations/Session/SessionManager.cs(+56 -63)📝
Jellyfin.Api/Controllers/SystemController.cs(+2 -11)📝
Jellyfin.Server/CoreAppHost.cs(+0 -6)📝
Jellyfin.Server/Program.cs(+8 -71)📝
MediaBrowser.Common/IApplicationHost.cs(+6 -3)📝
MediaBrowser.Common/Plugins/IPluginManager.cs(+0 -5)📝
MediaBrowser.Controller/Session/ISessionManager.cs(+0 -14)📝
tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs(+1 -2)📄 Description
Changes
Uses the built in
IHostLifetimeinfrastructure to handle shutdown/restart🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.