aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IApplicationHost.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common/IApplicationHost.cs')
-rw-r--r--MediaBrowser.Common/IApplicationHost.cs18
1 files changed, 14 insertions, 4 deletions
diff --git a/MediaBrowser.Common/IApplicationHost.cs b/MediaBrowser.Common/IApplicationHost.cs
index c1ea6e87c..5985d3dd8 100644
--- a/MediaBrowser.Common/IApplicationHost.cs
+++ b/MediaBrowser.Common/IApplicationHost.cs
@@ -41,15 +41,15 @@ namespace MediaBrowser.Common
bool HasPendingRestart { get; }
/// <summary>
- /// Gets or sets a value indicating whether this instance is currently shutting down.
+ /// Gets a value indicating whether this instance is currently shutting down.
/// </summary>
/// <value><c>true</c> if this instance is shutting down; otherwise, <c>false</c>.</value>
- bool IsShuttingDown { get; set; }
+ bool IsShuttingDown { get; }
/// <summary>
- /// Gets or sets a value indicating whether the application should restart.
+ /// Gets a value indicating whether the application should restart.
/// </summary>
- bool ShouldRestart { get; set; }
+ bool ShouldRestart { get; }
/// <summary>
/// Gets the application version.
@@ -92,6 +92,11 @@ namespace MediaBrowser.Common
void NotifyPendingRestart();
/// <summary>
+ /// Restarts this instance.
+ /// </summary>
+ void Restart();
+
+ /// <summary>
/// Gets the exports.
/// </summary>
/// <typeparam name="T">The type.</typeparam>
@@ -123,6 +128,11 @@ namespace MediaBrowser.Common
T Resolve<T>();
/// <summary>
+ /// Shuts down.
+ /// </summary>
+ void Shutdown();
+
+ /// <summary>
/// Initializes this instance.
/// </summary>
/// <param name="serviceCollection">Instance of the <see cref="IServiceCollection"/> interface.</param>