NativeApp.cs 811 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace MediaBrowser.Server.Mac
  3. {
  4. /// <summary>
  5. /// Class NativeApp
  6. /// </summary>
  7. public class NativeApp : BaseMonoApp
  8. {
  9. /// <summary>
  10. /// Shutdowns this instance.
  11. /// </summary>
  12. public override void Shutdown()
  13. {
  14. MainClass.Shutdown();
  15. }
  16. /// <summary>
  17. /// Determines whether this instance [can self restart].
  18. /// </summary>
  19. /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
  20. public override bool CanSelfRestart
  21. {
  22. get
  23. {
  24. return true;
  25. }
  26. }
  27. /// <summary>
  28. /// Restarts this instance.
  29. /// </summary>
  30. public override void Restart()
  31. {
  32. MainClass.Restart();
  33. }
  34. }
  35. }