diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-10-10 13:12:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 13:12:43 +0200 |
| commit | fc1f0a31a1305d1b310fd692884f40e83d0601a2 (patch) | |
| tree | c4e85e50adac5f9e7fd18d58bede129a650e4437 /MediaBrowser.Controller/ISystemManager.cs | |
| parent | 305405c9a1ac4a37ac9e8eda44899c33cf76eda3 (diff) | |
| parent | 6f7413812fb4654d1b1ca065a177a1bb19408386 (diff) | |
Merge pull request #10337 from barronpm/system-manager
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(); +} |
