IServerApplicationHost.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using MediaBrowser.Common;
  2. using MediaBrowser.Model.System;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MediaBrowser.Controller
  6. {
  7. /// <summary>
  8. /// Interface IServerApplicationHost
  9. /// </summary>
  10. public interface IServerApplicationHost : IApplicationHost
  11. {
  12. event EventHandler HasUpdateAvailableChanged;
  13. /// <summary>
  14. /// Gets the system info.
  15. /// </summary>
  16. /// <returns>SystemInfo.</returns>
  17. SystemInfo GetSystemInfo();
  18. /// <summary>
  19. /// Gets the name of the web application.
  20. /// </summary>
  21. /// <value>The name of the web application.</value>
  22. string WebApplicationName { get; }
  23. /// <summary>
  24. /// Gets a value indicating whether [supports automatic run at startup].
  25. /// </summary>
  26. /// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
  27. bool SupportsAutoRunAtStartup { get; }
  28. /// <summary>
  29. /// Gets the HTTP server port.
  30. /// </summary>
  31. /// <value>The HTTP server port.</value>
  32. int HttpServerPort { get; }
  33. /// <summary>
  34. /// Gets the HTTPS server port.
  35. /// </summary>
  36. /// <value>The HTTPS server port.</value>
  37. int HttpsServerPort { get; }
  38. /// <summary>
  39. /// Gets the value indiciating if an https port should be hosted.
  40. /// </summary>
  41. /// <value>
  42. /// The value indiciating if an https port should be hosted.
  43. /// </value>
  44. bool UseHttps { get; }
  45. /// <summary>
  46. /// Gets the value pointing to the file system where the ssl certiifcate is located.
  47. /// </summary>
  48. /// <value>
  49. /// The value pointing to the file system where the ssl certiifcate is located.
  50. /// </value>
  51. string CertificatePath { get; }
  52. /// <summary>
  53. /// Gets a value indicating whether this instance has update available.
  54. /// </summary>
  55. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  56. bool HasUpdateAvailable { get; }
  57. /// <summary>
  58. /// Gets the name of the friendly.
  59. /// </summary>
  60. /// <value>The name of the friendly.</value>
  61. string FriendlyName { get; }
  62. /// <summary>
  63. /// Gets the HTTP server ip addresses.
  64. /// </summary>
  65. /// <value>The HTTP server ip addresses.</value>
  66. IEnumerable<string> HttpServerIpAddresses { get; }
  67. }
  68. }