mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
added test for command executed event
This commit is contained in:
@@ -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