From 0eaba37c1157df5e42a6025c404dce6b56b6562b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 13 May 2014 20:46:45 -0400 Subject: add library to front page --- .../Updates/InstallationManager.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Common.Implementations/Updates/InstallationManager.cs') diff --git a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs index fe484840a6..ff32fc68eb 100644 --- a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs +++ b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs @@ -52,7 +52,7 @@ namespace MediaBrowser.Common.Implementations.Updates /// The plugin. private void OnPluginUninstalled(IPlugin plugin) { - EventHelper.QueueEventIfNotNull(PluginUninstalled, this, new GenericEventArgs { Argument = plugin }, _logger); + EventHelper.FireEventIfNotNull(PluginUninstalled, this, new GenericEventArgs { Argument = plugin }, _logger); } #endregion @@ -70,7 +70,7 @@ namespace MediaBrowser.Common.Implementations.Updates { _logger.Info("Plugin updated: {0} {1} {2}", newVersion.name, newVersion.version, newVersion.classification); - EventHelper.QueueEventIfNotNull(PluginUpdated, this, new GenericEventArgs> { Argument = new Tuple(plugin, newVersion) }, _logger); + EventHelper.FireEventIfNotNull(PluginUpdated, this, new GenericEventArgs> { Argument = new Tuple(plugin, newVersion) }, _logger); _applicationHost.NotifyPendingRestart(); } @@ -89,7 +89,7 @@ namespace MediaBrowser.Common.Implementations.Updates { _logger.Info("New plugin installed: {0} {1} {2}", package.name, package.version, package.classification); - EventHelper.QueueEventIfNotNull(PluginInstalled, this, new GenericEventArgs { Argument = package }, _logger); + EventHelper.FireEventIfNotNull(PluginInstalled, this, new GenericEventArgs { Argument = package }, _logger); _applicationHost.NotifyPendingRestart(); } @@ -403,7 +403,7 @@ namespace MediaBrowser.Common.Implementations.Updates PackageVersionInfo = package }; - EventHelper.QueueEventIfNotNull(PackageInstalling, this, installationEventArgs, _logger); + EventHelper.FireEventIfNotNull(PackageInstalling, this, installationEventArgs, _logger); try { @@ -418,7 +418,7 @@ namespace MediaBrowser.Common.Implementations.Updates CompletedInstallations.Add(installationInfo); - EventHelper.QueueEventIfNotNull(PackageInstallationCompleted, this, installationEventArgs, _logger); + EventHelper.FireEventIfNotNull(PackageInstallationCompleted, this, installationEventArgs, _logger); } catch (OperationCanceledException) { @@ -429,7 +429,7 @@ namespace MediaBrowser.Common.Implementations.Updates _logger.Info("Package installation cancelled: {0} {1}", package.name, package.versionStr); - EventHelper.QueueEventIfNotNull(PackageInstallationCancelled, this, installationEventArgs, _logger); + EventHelper.FireEventIfNotNull(PackageInstallationCancelled, this, installationEventArgs, _logger); throw; } @@ -442,7 +442,7 @@ namespace MediaBrowser.Common.Implementations.Updates CurrentInstallations.Remove(tuple); } - EventHelper.QueueEventIfNotNull(PackageInstallationFailed, this, new InstallationFailedEventArgs + EventHelper.FireEventIfNotNull(PackageInstallationFailed, this, new InstallationFailedEventArgs { InstallationInfo = installationInfo, Exception = ex -- cgit v1.2.3