Fix config broadcast dependency cycle #11

Merged
arnaud.dartois merged 1 commits from fix/config-broadcast-di into main 2026-10-20 21:05:56 +02:00
Owner

AppDbContext resolved IConfigBroadcastService in its constructor, while the broadcaster depends on IApplicationDbContext and therefore AppDbContext. Resolve the optional broadcaster after SaveChanges instead, preserving best-effort invalidation while breaking the startup DI cycle.

Validation: AuthSessionSecurityTests.Http_2fa_requires_password_challenge_and_rejects_replay passed.

AppDbContext resolved IConfigBroadcastService in its constructor, while the broadcaster depends on IApplicationDbContext and therefore AppDbContext. Resolve the optional broadcaster after SaveChanges instead, preserving best-effort invalidation while breaking the startup DI cycle. Validation: AuthSessionSecurityTests.Http_2fa_requires_password_challenge_and_rejects_replay passed.
arnaud.dartois added 1 commit 2026-10-20 20:57:28 +02:00
arnaud.dartois merged commit dac178930b into main 2026-10-20 21:05:56 +02:00
arnaud.dartois added the area:docspriority:P2type:bug labels 2026-11-06 13:40:05 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arnaud.dartois/Heimdall#11