Browse Source

Update DistributedEventBusBase.cs

pull/21427/head
maliming 2 years ago
committed by GitHub
parent
commit
d49665ca27
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/DistributedEventBusBase.cs

7
framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/DistributedEventBusBase.cs

@ -132,10 +132,13 @@ public abstract class DistributedEventBusBase : EventBusBase, IDistributedEventB
Serialize(eventData),
Clock.Now
);
if (CorrelationIdProvider.Get() != null)
var correlationId = CorrelationIdProvider.Get();
if (correlationId != null)
{
outgoingEventInfo.SetCorrelationId(CorrelationIdProvider.Get()!);
outgoingEventInfo.SetCorrelationId(correlationId);
}
await eventOutbox.EnqueueAsync(outgoingEventInfo);
return true;
}

Loading…
Cancel
Save