ISystemManager.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MediaBrowser.Model.System;
  2. using Microsoft.AspNetCore.Http;
  3. using Microsoft.AspNetCore.Mvc;
  4. namespace MediaBrowser.Controller;
  5. /// <summary>
  6. /// A service for managing the application instance.
  7. /// </summary>
  8. public interface ISystemManager
  9. {
  10. /// <summary>
  11. /// Gets the system info.
  12. /// </summary>
  13. /// <param name="request">The HTTP request.</param>
  14. /// <returns>The <see cref="SystemInfo"/>.</returns>
  15. SystemInfo GetSystemInfo(HttpRequest request);
  16. /// <summary>
  17. /// Gets the public system info.
  18. /// </summary>
  19. /// <param name="request">The HTTP request.</param>
  20. /// <returns>The <see cref="PublicSystemInfo"/>.</returns>
  21. PublicSystemInfo GetPublicSystemInfo(HttpRequest request);
  22. /// <summary>
  23. /// Starts the application restart process.
  24. /// </summary>
  25. void Restart();
  26. /// <summary>
  27. /// Starts the application shutdown process.
  28. /// </summary>
  29. void Shutdown();
  30. /// <summary>
  31. /// Gets the systems storage resources.
  32. /// </summary>
  33. /// <returns>The <see cref="SystemStorageInfo"/>.</returns>
  34. SystemStorageInfo GetSystemStorageInfo();
  35. }