diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-20 13:32:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-20 13:32:10 -0400 |
| commit | f3ce127a62714c97747f1e9575aaea1e9cdb3b6a (patch) | |
| tree | d138a473d31b69e8ba59020b0dc1da3c51c2833e /MediaBrowser.ServerApplication/IApplicationInterface.cs | |
| parent | e50c29ffca5c4a5865d8b0bf34c2f655387f1d3e (diff) | |
starting point towards running as a service
Diffstat (limited to 'MediaBrowser.ServerApplication/IApplicationInterface.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/IApplicationInterface.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/IApplicationInterface.cs b/MediaBrowser.ServerApplication/IApplicationInterface.cs new file mode 100644 index 000000000..e75324826 --- /dev/null +++ b/MediaBrowser.ServerApplication/IApplicationInterface.cs @@ -0,0 +1,32 @@ +using System; + +namespace MediaBrowser.ServerApplication +{ + /// <summary> + /// Interface IApplicationInterface + /// </summary> + public interface IApplicationInterface + { + /// <summary> + /// Gets a value indicating whether this instance is background service. + /// </summary> + /// <value><c>true</c> if this instance is background service; otherwise, <c>false</c>.</value> + bool IsBackgroundService { get; } + + /// <summary> + /// Shutdowns the application. + /// </summary> + void ShutdownApplication(); + + /// <summary> + /// Restarts the application. + /// </summary> + void RestartApplication(); + + /// <summary> + /// Called when [unhandled exception]. + /// </summary> + /// <param name="ex">The ex.</param> + void OnUnhandledException(Exception ex); + } +} |
