NativeApp.cs 948 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using MediaBrowser.Server.Startup.Common;
  2. namespace MediaBrowser.Server.Mono.Native
  3. {
  4. /// <summary>
  5. /// Class NativeApp
  6. /// </summary>
  7. internal 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(StartupOptions startupOptions)
  31. {
  32. MainClass.Restart(startupOptions);
  33. }
  34. }
  35. }