Skip to content

Commit 0d87788

Browse files
Fix: NotifyAsync Crashes if there are multiple DB calls in handlers (#156)
* sys: v4 codeql does noot exist * fix: v3 also desn't exist * feature: hand-rolled interfaces * feature: an implemented mediator * feature: superior folder structure feature: start removing * feature: start unpicking mediatr * sys: version that builds without mediatr * feature: remove remaining mediators * fix: some DI errors * fix: DI scope and generic handling * refactor: better naming * refactor: docstrings * refactor: fail-fast * docs: docstrings for DI * feature: basic .NET 10 integration * sys: some version upgrades * sys: more package upgrades * sys: crosscuts package upgrade * sys: minor package upgrade for fluent assertions * sys: efcore updates * sys: more version upgrades * sys: .NET 10 upgrade * wip: rabbit upgrade * sys: move mediator to correct file location * sys: move file * refactor: remove redundant code * fix: references * sys: remove rabbit * fix: deprecated code * sys: update tests to handle existing race condition * sys: upgrade sonar runner * sys: ensure consistent sonar scan use * sys: test reporter version * refactor: remove redundant package * fix: simultaneous DB calls result in notify failing
1 parent 8776d19 commit 0d87788

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/OneBeyond.Studio.Core.Mediator/Mediator.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public async Task NotifyAsync<TNotification>(TNotification notification, Cancell
7575

7676
var delegateList = receivers.Select(r => r.HandleAsync(notification, cancellationToken));
7777

78-
await Task.WhenAll(delegateList);
78+
foreach (var action in delegateList)
79+
{
80+
await action;
81+
}
7982
}
8083

8184
/// <inheritdoc/>

0 commit comments

Comments
 (0)