diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index 8dcfb0996..1c5402268 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -50,12 +50,12 @@ namespace Emby.Server.Implementations.Updates /// /// The current installations. /// - private List<(InstallationInfo info, CancellationTokenSource token)> _currentInstallations; + private readonly List<(InstallationInfo info, CancellationTokenSource token)> _currentInstallations; /// /// The completed installations. /// - private ConcurrentBag _completedInstallationsInternal; + private readonly ConcurrentBag _completedInstallationsInternal; public InstallationManager( ILogger logger, @@ -85,29 +85,28 @@ namespace Emby.Server.Implementations.Updates _zipClient = zipClient; } + /// public event EventHandler PackageInstalling; + /// public event EventHandler PackageInstallationCompleted; + /// public event EventHandler PackageInstallationFailed; + /// public event EventHandler PackageInstallationCancelled; - /// - /// Occurs when a plugin is uninstalled. - /// + /// public event EventHandler> PluginUninstalled; - /// - /// Occurs when a plugin plugin is updated. - /// + /// public event EventHandler> PluginUpdated; - /// - /// Occurs when a plugin plugin is installed. - /// + /// public event EventHandler> PluginInstalled; + /// public IEnumerable CompletedInstallations => _completedInstallationsInternal; /// diff --git a/MediaBrowser.Common/Updates/IInstallationManager.cs b/MediaBrowser.Common/Updates/IInstallationManager.cs index ce4829c13..7850385fd 100644 --- a/MediaBrowser.Common/Updates/IInstallationManager.cs +++ b/MediaBrowser.Common/Updates/IInstallationManager.cs @@ -13,27 +13,30 @@ namespace MediaBrowser.Common.Updates public interface IInstallationManager : IDisposable { event EventHandler PackageInstalling; + event EventHandler PackageInstallationCompleted; + event EventHandler PackageInstallationFailed; + event EventHandler PackageInstallationCancelled; /// - /// Occurs when [plugin uninstalled]. + /// Occurs when a plugin is uninstalled. /// event EventHandler> PluginUninstalled; /// - /// Occurs when [plugin updated]. + /// Occurs when a plugin is updated. /// event EventHandler> PluginUpdated; /// - /// Occurs when [plugin updated]. + /// Occurs when a plugin is installed. /// event EventHandler> PluginInstalled; /// - /// The completed installations + /// Gets the completed installations /// IEnumerable CompletedInstallations { get; }