|
|
@ -50,12 +50,12 @@ namespace Emby.Server.Implementations.Updates
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// The current installations.
|
|
|
|
/// The current installations.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
private List<(InstallationInfo info, CancellationTokenSource token)> _currentInstallations;
|
|
|
|
private readonly List<(InstallationInfo info, CancellationTokenSource token)> _currentInstallations;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// The completed installations.
|
|
|
|
/// The completed installations.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
private ConcurrentBag<InstallationInfo> _completedInstallationsInternal;
|
|
|
|
private readonly ConcurrentBag<InstallationInfo> _completedInstallationsInternal;
|
|
|
|
|
|
|
|
|
|
|
|
public InstallationManager(
|
|
|
|
public InstallationManager(
|
|
|
|
ILogger<InstallationManager> logger,
|
|
|
|
ILogger<InstallationManager> logger,
|
|
|
@ -85,29 +85,28 @@ namespace Emby.Server.Implementations.Updates
|
|
|
|
_zipClient = zipClient;
|
|
|
|
_zipClient = zipClient;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstalling;
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstalling;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstallationCompleted;
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstallationCompleted;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public event EventHandler<InstallationFailedEventArgs> PackageInstallationFailed;
|
|
|
|
public event EventHandler<InstallationFailedEventArgs> PackageInstallationFailed;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstallationCancelled;
|
|
|
|
public event EventHandler<InstallationEventArgs> PackageInstallationCancelled;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// Occurs when a plugin is uninstalled.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public event EventHandler<GenericEventArgs<IPlugin>> PluginUninstalled;
|
|
|
|
public event EventHandler<GenericEventArgs<IPlugin>> PluginUninstalled;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// Occurs when a plugin plugin is updated.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public event EventHandler<GenericEventArgs<(IPlugin, PackageVersionInfo)>> PluginUpdated;
|
|
|
|
public event EventHandler<GenericEventArgs<(IPlugin, PackageVersionInfo)>> PluginUpdated;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// Occurs when a plugin plugin is installed.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public event EventHandler<GenericEventArgs<PackageVersionInfo>> PluginInstalled;
|
|
|
|
public event EventHandler<GenericEventArgs<PackageVersionInfo>> PluginInstalled;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public IEnumerable<InstallationInfo> CompletedInstallations => _completedInstallationsInternal;
|
|
|
|
public IEnumerable<InstallationInfo> CompletedInstallations => _completedInstallationsInternal;
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|