Skip to content

Conversation

@danielmarbach
Copy link
Contributor

{
Defaults(s =>
{
var defaultsAppliedSettingsKey = "NServiceBus.Persistence.Sql.DefaultsApplied";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See 256ea09

Pretty sure this was needed because when you specified UsePersistence multiple times, there were multiple instances of the class we applied the defaults for, which would have led to a duplicate key exception due to the diagnostic section key already being used.

The new persistence seam will create the SqlPersistence only once

// cc @andreasohlund

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 🥳❤️

@danielmarbach danielmarbach marked this pull request as ready for review October 20, 2025 07:43
@danielmarbach danielmarbach enabled auto-merge (squash) October 20, 2025 12:14
@danielmarbach danielmarbach merged commit 27d875a into master Oct 20, 2025
10 checks passed
@danielmarbach danielmarbach deleted the persistence-seam branch October 20, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants