IApplicationInterface.cs 894 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace MediaBrowser.ServerApplication
  3. {
  4. /// <summary>
  5. /// Interface IApplicationInterface
  6. /// </summary>
  7. public interface IApplicationInterface
  8. {
  9. /// <summary>
  10. /// Gets a value indicating whether this instance is background service.
  11. /// </summary>
  12. /// <value><c>true</c> if this instance is background service; otherwise, <c>false</c>.</value>
  13. bool IsBackgroundService { get; }
  14. /// <summary>
  15. /// Shutdowns the application.
  16. /// </summary>
  17. void ShutdownApplication();
  18. /// <summary>
  19. /// Restarts the application.
  20. /// </summary>
  21. void RestartApplication();
  22. /// <summary>
  23. /// Called when [unhandled exception].
  24. /// </summary>
  25. /// <param name="ex">The ex.</param>
  26. void OnUnhandledException(Exception ex);
  27. }
  28. }