diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-10-10 15:58:51 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2023-10-10 15:59:34 -0600 |
| commit | 6bd6fb6e0a4828cc5cb16a4e48a8fba20a7d6305 (patch) | |
| tree | 208e41ce44cb66107843dd2fdb80cbe673bc1240 /MediaBrowser.Controller/ISystemManager.cs | |
| parent | bc88c96cbe13301ee6e5f6a2d688a4c90338281d (diff) | |
| parent | 74f61fbd79ef2e2ad4a986f5f886581b2827de07 (diff) | |
Merge branch 'master' into chromecast-config
# Conflicts:
# Emby.Server.Implementations/ApplicationHost.cs
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(); +} |
