diff options
| author | Patrick Barron <barronpm@gmail.com> | 2023-10-04 14:34:53 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2023-10-04 14:40:00 -0400 |
| commit | 6f7413812fb4654d1b1ca065a177a1bb19408386 (patch) | |
| tree | 5731cff619a1f2916c1dd2a52553c613e8b4f7f7 /MediaBrowser.Controller/ISystemManager.cs | |
| parent | c124d025015ff03f474fc506855d2051e22db23f (diff) | |
Add SystemManager service
Diffstat (limited to 'MediaBrowser.Controller/ISystemManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/ISystemManager.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/ISystemManager.cs b/MediaBrowser.Controller/ISystemManager.cs new file mode 100644 index 000000000..ef3034d2f --- /dev/null +++ b/MediaBrowser.Controller/ISystemManager.cs @@ -0,0 +1,34 @@ +using MediaBrowser.Model.System; +using Microsoft.AspNetCore.Http; + +namespace MediaBrowser.Controller; + +/// <summary> +/// A service for managing the application instance. +/// </summary> +public interface ISystemManager +{ + /// <summary> + /// Gets the system info. + /// </summary> + /// <param name="request">The HTTP request.</param> + /// <returns>The <see cref="SystemInfo"/>.</returns> + SystemInfo GetSystemInfo(HttpRequest request); + + /// <summary> + /// Gets the public system info. + /// </summary> + /// <param name="request">The HTTP request.</param> + /// <returns>The <see cref="PublicSystemInfo"/>.</returns> + PublicSystemInfo GetPublicSystemInfo(HttpRequest request); + + /// <summary> + /// Starts the application restart process. + /// </summary> + void Restart(); + + /// <summary> + /// Starts the application shutdown process. + /// </summary> + void Shutdown(); +} |
