mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
added test for command executed event
This commit is contained in:
parent
e2e787261d
commit
634cc32ad8
8 changed files with 36 additions and 12 deletions
|
@ -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(""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue