MediatR 5.1 Released
This release changes the default behavior of awaiting an enumerable of Task
. Previous to this release, tasks where awaited using Task.WhenAll
. This causes problems in a variety of environments and situations that expect sequential ordering.
In this release, the default behavior for enumerables is to await in a foreach
, for:
Mediator.Publish
RequestPreProcessorBehavior
RequestPostProcessorBehavior
You can override the Mediator.Publish
behavior by overriding the virtual PublishCore
method, while the other two you can simply replace with your own implementation.
Install via NuGet:
Enjoy!