diff options
| author | JPVenson <github@jpb.email> | 2025-02-02 02:32:28 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2025-02-02 02:32:28 +0000 |
| commit | efb402b1d27ca3f3444f7b81553ced804029bb3f (patch) | |
| tree | 5fef3c6918066a22cc2e8f68e6f5f9dfc2f4cf64 /Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs | |
| parent | 61b2ad7f496b6e47ed3646636f57d96916ffbf33 (diff) | |
Fixed shutdown behavior
Diffstat (limited to 'Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs')
| -rw-r--r-- | Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs b/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs index 72a6f819e..b27a88971 100644 --- a/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs +++ b/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs @@ -8,7 +8,7 @@ namespace Jellyfin.Server.Implementations; /// <summary> /// Defines the type and extension points for multi database support. /// </summary> -public interface IJellyfinDatabaseProvider : IAsyncDisposable +public interface IJellyfinDatabaseProvider { /// <summary> /// Gets or Sets the Database Factory when initialisaition is done. @@ -33,4 +33,11 @@ public interface IJellyfinDatabaseProvider : IAsyncDisposable /// <param name="cancellationToken">The token to abort the operation.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> Task RunScheduledOptimisation(CancellationToken cancellationToken); + + /// <summary> + /// If supported this should perform any actions that are required on stopping the jellyfin server. + /// </summary> + /// <param name="cancellationToken">The token that will be used to abort the operation.</param> + /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> + Task RunShutdownTask(CancellationToken cancellationToken); } |
