mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
added test for command executed event
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Messaging;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
|
||||
|
||||
|
||||
@@ -118,12 +118,13 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
}
|
||||
finally
|
||||
{
|
||||
_eventAggregator.PublishEvent(new CommandUpdatedEvent(command));
|
||||
_eventAggregator.PublishEvent(new CommandExecutedEvent(command));
|
||||
|
||||
if (MappedDiagnosticsContext.Get("CommandId") == command.Id.ToString())
|
||||
{
|
||||
MappedDiagnosticsContext.Remove("CommandId");
|
||||
}
|
||||
_eventAggregator.PublishEvent(new CommandUpdatedEvent(command));
|
||||
_eventAggregator.PublishEvent(new CommandExecutedEvent(command));
|
||||
}
|
||||
|
||||
_logger.Trace("{0} <- {1} [{2}]", command.GetType().Name, handler.GetType().Name, command.Runtime.ToString(""));
|
||||
|
||||
Reference in New Issue
Block a user