4
MediatR 12.0 Released
source link: https://jimmybogard.com/mediatr-12-0-released/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
MediatR 12.0 Released
This is a pretty big release, with a number of breaking changes.
Breaking changes include:
- Depending directly on
IServiceProvider
to resolve services - Making "void" request handlers return
Task
instead ofUnit
IRequest
does not inheritIRequest<Unit>
insteadIBaseRequest
- Consolidating the
MediatR.Extensions.Microsoft.DependencyInjection
package into the main MediatR package - Rolling back stricter generic constraints in various behavior interfaces
- Various behavior registrations now inside of the
IServiceCollection
extension - Overloads of
AddMediatR
consolidated into single configuration object
The migration guide includes instructions for upgrading. In addition, this release adds some new functionality, including:
- Targeting
netstandard2.0
instead ofnetstandard2.1
- Adding custom notification publisher strategies (for parallel vs. sequential execution, for example).
Enjoy! Or not? Either way, it's out.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK