NativeApp.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using MediaBrowser.Server.Mono;
  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. MainClass.Shutdown ();
  15. }
  16. /// <summary>
  17. /// Restarts this instance.
  18. /// </summary>
  19. public static void Restart()
  20. {
  21. MainClass.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 MainClass.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 MainClass.CanSelfUpdate;
  43. }
  44. }
  45. }
  46. }