4

MediatR 12.0 Released

 1 year ago
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.
neoserver,ios ssh client

MediatR

MediatR 12.0 Released

Jimmy Bogard

15 Feb 2023 • 1 min read

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 of Unit
  • IRequest does not inherit IRequest<Unit> instead IBaseRequest
  • 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 of netstandard2.1
  • Adding custom notification publisher strategies (for parallel vs. sequential execution, for example).

Enjoy! Or not? Either way, it's out.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK