Simple mediator implementation in .NET. In-process messaging with no dependencies. Supports request/response, commands, queries, notifications and events, synchronous and async with intelligent dispatching via C# generic variance. You should install MediatR with NuGet. Or via the .NET Core command line interface. Either commands, from Package Manager Console or .NET Core CLI, will download and install MediatR and all required dependencies. MediatR is a low-ambition library trying to solve a simple problem, decoupling the in-process sending of messages from handling messages. Cross-platform, supporting .NET Framework 4.6.1 and netstandard2.0. MediatR has no dependencies. You will need to configure a single factory delegate, used to instantiate all handlers, pipeline behaviors, and pre/post-processors.

Features

  • The factory delegates are named delegates around a couple of generic factory methods
  • Declare whatever flavor of handler you need
  • Request/response messages, dispatched to a single handler
  • Notification messages, dispatched to multiple handlers
  • The request/response interface handles both command and query scenarios
  • Handler interfaces are contravariant

Project Samples

Project Activity

See All Activity >

Categories

System

License

Apache License V2.0

Follow MediatR

MediatR Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MediatR!

Additional Project Details

Programming Language

C#

Related Categories

C# System Software

Registered

2021-08-26