Re-add shutdown/restart methods

This commit is contained in:
Patrick Barron
2023-10-02 15:55:26 -04:00
parent 59ec06c35c
commit f746db9a54
3 changed files with 36 additions and 24 deletions

View File

@@ -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.
@@ -91,6 +91,11 @@ namespace MediaBrowser.Common
/// </summary>
void NotifyPendingRestart();
/// <summary>
/// Restarts this instance.
/// </summary>
void Restart();
/// <summary>
/// Gets the exports.
/// </summary>
@@ -122,6 +127,11 @@ namespace MediaBrowser.Common
/// <returns>``0.</returns>
T Resolve<T>();
/// <summary>
/// Shuts down.
/// </summary>
void Shutdown();
/// <summary>
/// Initializes this instance.
/// </summary>