From 7da695bd6205a26101c3beca211a8c196acd23f8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 9 Apr 2021 10:36:56 -0700 Subject: [PATCH] Revert "Handle events asynchronously for notifications" This reverts commit 46da6577407c998fd6ece7589cd3340d4a8bc010. --- .../Notifications/NotificationService.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index 08db00a83..df520c1b8 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -15,12 +15,12 @@ using NzbDrone.Core.Tv.Events; namespace NzbDrone.Core.Notifications { public class NotificationService - : IHandleAsync, - IHandleAsync, - IHandleAsync, - IHandleAsync, - IHandleAsync, - IHandleAsync, + : IHandle, + IHandle, + IHandle, + IHandle, + IHandle, + IHandle, IHandleAsync, IHandleAsync, IHandleAsync, @@ -109,7 +109,7 @@ namespace NzbDrone.Core.Notifications return false; } - public void HandleAsync(EpisodeGrabbedEvent message) + public void Handle(EpisodeGrabbedEvent message) { var grabMessage = new GrabMessage { @@ -136,7 +136,7 @@ namespace NzbDrone.Core.Notifications } } - public void HandleAsync(EpisodeImportedEvent message) + public void Handle(EpisodeImportedEvent message) { if (!message.NewDownload) { @@ -174,7 +174,7 @@ namespace NzbDrone.Core.Notifications } } - public void HandleAsync(SeriesRenamedEvent message) + public void Handle(SeriesRenamedEvent message) { foreach (var notification in _notificationFactory.OnRenameEnabled()) { @@ -193,7 +193,7 @@ namespace NzbDrone.Core.Notifications } } - public void HandleAsync(EpisodeFileDeletedEvent message) + public void Handle(EpisodeFileDeletedEvent message) { if (message.EpisodeFile.Episodes.Value.Empty()) { @@ -227,7 +227,7 @@ namespace NzbDrone.Core.Notifications } } - public void HandleAsync(SeriesDeletedEvent message) + public void Handle(SeriesDeletedEvent message) { var deleteMessage = new SeriesDeleteMessage(message.Series,message.DeleteFiles); @@ -247,7 +247,7 @@ namespace NzbDrone.Core.Notifications } } - public void HandleAsync(HealthCheckFailedEvent message) + public void Handle(HealthCheckFailedEvent message) { foreach (var notification in _notificationFactory.OnHealthIssueEnabled()) {