mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 09:09:42 +02:00
cleanup CommandId from MappedDiagnosticsContext
This commit is contained in:
@@ -166,6 +166,13 @@ namespace NzbDrone.Core.Messaging
|
|||||||
PublishEvent(new CommandUpdatedEvent(command));
|
PublishEvent(new CommandUpdatedEvent(command));
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (MappedDiagnosticsContext.Get("CommandId") == command.Id.ToString())
|
||||||
|
{
|
||||||
|
MappedDiagnosticsContext.Remove("CommandId");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PublishEvent(new CommandExecutedEvent(command));
|
PublishEvent(new CommandExecutedEvent(command));
|
||||||
PublishEvent(new CommandUpdatedEvent(command));
|
PublishEvent(new CommandUpdatedEvent(command));
|
||||||
|
Reference in New Issue
Block a user