NativeApp.cs 886 B

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  35. }