NativeApp.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 
  2. namespace MediaBrowser.ServerApplication.Native
  3. {
  4. /// <summary>
  5. /// Class NativeApp
  6. /// </summary>
  7. public static class NativeApp
  8. {
  9. /// <summary>
  10. /// Shutdowns this instance.
  11. /// </summary>
  12. public static void Shutdown()
  13. {
  14. MainStartup.Shutdown();
  15. }
  16. /// <summary>
  17. /// Restarts this instance.
  18. /// </summary>
  19. public static void Restart()
  20. {
  21. MainStartup.Restart();
  22. }
  23. /// <summary>
  24. /// Determines whether this instance [can self restart].
  25. /// </summary>
  26. /// <returns><c>true</c> if this instance [can self restart]; otherwise, <c>false</c>.</returns>
  27. public static bool CanSelfRestart
  28. {
  29. get
  30. {
  31. return MainStartup.CanSelfRestart;
  32. }
  33. }
  34. /// <summary>
  35. /// Gets a value indicating whether this instance can self update.
  36. /// </summary>
  37. /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
  38. public static bool CanSelfUpdate
  39. {
  40. get
  41. {
  42. return MainStartup.CanSelfUpdate;
  43. }
  44. }
  45. }
  46. }