mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 16:33:25 -03:00
Re-add shutdown/restart methods
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user