IServerApplicationHost.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using MediaBrowser.Common;
  2. using MediaBrowser.Model.System;
  3. using System;
  4. namespace MediaBrowser.Controller
  5. {
  6. /// <summary>
  7. /// Interface IServerApplicationHost
  8. /// </summary>
  9. public interface IServerApplicationHost : IApplicationHost
  10. {
  11. event EventHandler HasUpdateAvailableChanged;
  12. /// <summary>
  13. /// Gets the system info.
  14. /// </summary>
  15. /// <returns>SystemInfo.</returns>
  16. SystemInfo GetSystemInfo();
  17. /// <summary>
  18. /// Gets a value indicating whether [supports automatic run at startup].
  19. /// </summary>
  20. /// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
  21. bool SupportsAutoRunAtStartup { get; }
  22. /// <summary>
  23. /// Gets the HTTP server port.
  24. /// </summary>
  25. /// <value>The HTTP server port.</value>
  26. int HttpPort { get; }
  27. /// <summary>
  28. /// Gets the HTTPS port.
  29. /// </summary>
  30. /// <value>The HTTPS port.</value>
  31. int HttpsPort { get; }
  32. /// <summary>
  33. /// Gets a value indicating whether [supports HTTPS].
  34. /// </summary>
  35. /// <value><c>true</c> if [supports HTTPS]; otherwise, <c>false</c>.</value>
  36. bool EnableHttps { get; }
  37. /// <summary>
  38. /// Gets a value indicating whether this instance has update available.
  39. /// </summary>
  40. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  41. bool HasUpdateAvailable { get; }
  42. /// <summary>
  43. /// Gets the name of the friendly.
  44. /// </summary>
  45. /// <value>The name of the friendly.</value>
  46. string FriendlyName { get; }
  47. /// <summary>
  48. /// Gets the local ip address.
  49. /// </summary>
  50. /// <value>The local ip address.</value>
  51. string LocalIpAddress { get; }
  52. /// <summary>
  53. /// Gets the local API URL.
  54. /// </summary>
  55. /// <value>The local API URL.</value>
  56. string LocalApiUrl { get; }
  57. /// <summary>
  58. /// Gets the local API URL.
  59. /// </summary>
  60. /// <param name="host">The host.</param>
  61. /// <returns>System.String.</returns>
  62. string GetLocalApiUrl(string host);
  63. }
  64. }