Skip to content

Commit

Permalink
Avoid needed confusing using alias
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Sep 12, 2023
1 parent 8de962c commit a3c9998
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Newtonsoft.Json;
using Outbox;
using Transport;
using Headers = Headers;

class OutboxPersister : IOutboxStorage
{
Expand Down Expand Up @@ -43,7 +42,7 @@ public async Task<OutboxMessage> Get(string messageId, ContextBag context, Cance
{
// because of the transactional session we cannot assume the incoming message is always present
if (!context.TryGet<IncomingMessage>(out var incomingMessage) ||
!incomingMessage.Headers.ContainsKey(Headers.ControlMessageHeader))
!incomingMessage.Headers.ContainsKey(NServiceBus.Headers.ControlMessageHeader))
{
// we return null here to enable outbox work at logical stage
return null;
Expand Down

0 comments on commit a3c9998

Please sign in to comment.