using System; namespace MediaBrowser.ServerApplication { /// /// Interface IApplicationInterface /// public interface IApplicationInterface { /// /// Gets a value indicating whether this instance is background service. /// /// true if this instance is background service; otherwise, false. bool IsBackgroundService { get; } /// /// Shutdowns the application. /// void ShutdownApplication(); /// /// Restarts the application. /// void RestartApplication(); /// /// Called when [unhandled exception]. /// /// The ex. void OnUnhandledException(Exception ex); } }