We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I observed the process of CorrelationId writing to the database and found that it lost the extension data in the step
DbContextEventOutbox<TDbContext> { [UnitOfWork] public virtual async Task EnqueueAsync(OutgoingEventInfo outgoingEvent) { var dbContext = (IHasEventOutbox)await DbContextProvider.GetDbContextAsync(); dbContext.OutgoingEvents.Add(new OutgoingEventRecord(outgoingEvent)); } }
new OutgoingEventRecord
var eventBus = LazyServiceProvider.LazyGetRequiredService<IDistributedEventBus>(); await eventBus.PublishAsync(eto, onUnitOfWorkComplete:true, useOutbox: true);
useOutbox=true, then we can observe.
You want to load extended data, such as:
public OutgoingEventRecord( OutgoingEventInfo eventInfo) : base(eventInfo.Id) { EventName = eventInfo.EventName; EventData = eventInfo.EventData; CreationTime = eventInfo.CreationTime; ExtraProperties = new ExtraPropertyDictionary(); this.SetDefaultsForExtraProperties(); foreach (var property in eventInfo.ExtraProperties) { this.SetProperty(property.Key, property.Value); } }
No response
8.0.6
Common (Default)
EF Core (Default)
None (Default)
Windows (Default)
The text was updated successfully, but these errors were encountered:
Set event record extra properties from eventInfo
eventInfo
21c27e3
Resolve #20298
maliming
No branches or pull requests
Is there an existing issue for this?
Description
I observed the process of CorrelationId writing to the database and found that it lost the extension data in the step
new OutgoingEventRecord
Reproduction Steps
useOutbox=true, then we can observe.
Expected behavior
You want to load extended data, such as:
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.0.6
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: