mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
cleanup CommandId from MappedDiagnosticsContext
This commit is contained in:
parent
87da82dd90
commit
909439f615
@ -166,6 +166,13 @@ private void ExecuteCommand<TCommand>(Command command) where TCommand : Command
|
||||
PublishEvent(new CommandUpdatedEvent(command));
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (MappedDiagnosticsContext.Get("CommandId") == command.Id.ToString())
|
||||
{
|
||||
MappedDiagnosticsContext.Remove("CommandId");
|
||||
}
|
||||
}
|
||||
|
||||
PublishEvent(new CommandExecutedEvent(command));
|
||||
PublishEvent(new CommandUpdatedEvent(command));
|
||||
|
Loading…
Reference in New Issue
Block a user