IServerApplicationHost.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System.Collections.Generic;
  2. using MediaBrowser.Common;
  3. using MediaBrowser.Model.System;
  4. using System;
  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 a value indicating whether this instance has update available.
  35. /// </summary>
  36. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  37. bool HasUpdateAvailable { get; }
  38. /// <summary>
  39. /// Gets the name of the friendly.
  40. /// </summary>
  41. /// <value>The name of the friendly.</value>
  42. string FriendlyName { get; }
  43. /// <summary>
  44. /// Gets the HTTP server ip addresses.
  45. /// </summary>
  46. /// <value>The HTTP server ip addresses.</value>
  47. IEnumerable<string> HttpServerIpAddresses { get; }
  48. }
  49. }