|
|
@ -38,7 +38,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
public Task RunAsync()
|
|
|
|
public Task RunAsync()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_installationManager.PluginUninstalled += OnPluginUninstalled;
|
|
|
|
_installationManager.PluginUninstalled += OnPluginUninstalled;
|
|
|
|
_installationManager.PackageInstalling += OnPackageInstalling;
|
|
|
|
|
|
|
|
_installationManager.PackageInstallationCancelled += OnPackageInstallationCancelled;
|
|
|
|
_installationManager.PackageInstallationCancelled += OnPackageInstallationCancelled;
|
|
|
|
_installationManager.PackageInstallationCompleted += OnPackageInstallationCompleted;
|
|
|
|
_installationManager.PackageInstallationCompleted += OnPackageInstallationCompleted;
|
|
|
|
_installationManager.PackageInstallationFailed += OnPackageInstallationFailed;
|
|
|
|
_installationManager.PackageInstallationFailed += OnPackageInstallationFailed;
|
|
|
@ -46,11 +45,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
return Task.CompletedTask;
|
|
|
|
return Task.CompletedTask;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async void OnPackageInstalling(object sender, InstallationInfo e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
await SendMessageToAdminSessions("PackageInstalling", e).ConfigureAwait(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async void OnPackageInstallationCancelled(object sender, InstallationInfo e)
|
|
|
|
private async void OnPackageInstallationCancelled(object sender, InstallationInfo e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await SendMessageToAdminSessions("PackageInstallationCancelled", e).ConfigureAwait(false);
|
|
|
|
await SendMessageToAdminSessions("PackageInstallationCancelled", e).ConfigureAwait(false);
|
|
|
@ -103,7 +97,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
if (dispose)
|
|
|
|
if (dispose)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_installationManager.PluginUninstalled -= OnPluginUninstalled;
|
|
|
|
_installationManager.PluginUninstalled -= OnPluginUninstalled;
|
|
|
|
_installationManager.PackageInstalling -= OnPackageInstalling;
|
|
|
|
|
|
|
|
_installationManager.PackageInstallationCancelled -= OnPackageInstallationCancelled;
|
|
|
|
_installationManager.PackageInstallationCancelled -= OnPackageInstallationCancelled;
|
|
|
|
_installationManager.PackageInstallationCompleted -= OnPackageInstallationCompleted;
|
|
|
|
_installationManager.PackageInstallationCompleted -= OnPackageInstallationCompleted;
|
|
|
|
_installationManager.PackageInstallationFailed -= OnPackageInstallationFailed;
|
|
|
|
_installationManager.PackageInstallationFailed -= OnPackageInstallationFailed;
|
|
|
|