Top "Mediatr" questions

MediatR is a simple, open source mediator implementation in .NET.

ASP.NET Core MediatR error: Register your handlers with the container

I have a .Net Core app where i use the .AddMediatR extension to register the assembly for my commands and …

c# asp.net-core autofac mediatr
MediatR with ASP.NET Core DI

I'm playing around with the new ASP.NET Core and are currently creating a API that I want to call …

c# asp.net asp.net-core mediatr
Add validation to a MediatR behavior pipeline?

I'm using ASP.NET Core, the built-in container, and MediatR 3 which supports "behavior" pipelines: public class MyRequest : IRequest<string&…

c# asp.net-core cqrs fluentvalidation mediatr
How do I register and use a MediatR pipeline handler, for ASP.NET Core?

I'm using ASP.NET Core, the latest MediatR, and MediatR extension for Core's DI. I'm trying to set up a …

asp.net-core cqrs mediatr
Add a generic handler for Send and Publish methods of the MediatR library in asp .net core

I use the CQS pattern in my asp.net core project. Let's start with an example to better explain what …

c# asp.net-core mediatr
the program is not able to find handler for MediatR query ASP.Net Core

I'm using ASP.Net Core 2.2 and MediatR framework/library for query objects. When I run the program i face to …

c# asp.net asp.net-core mediatr
How to instantiate Mediatr as part of a Unit Test?

I am trying to build an xUnit Test project for an MVC Core 2.2 Application that is based on the CQRS/…

cqrs mediatr
Mocking MediatR 3 with Moq

We've recently started using MediatR to allow us to de-clutter controller actions as we re-factor a large customer facing portal …

c# unit-testing moq xunit mediatr
Handling errors/exceptions in a mediator pipeline using CQRS?

I'm trying to follow this post by Jimmy Bogard to implement a mediator pipeline so I can use pre/post …

c# asp.net-web-api2 autofac cqrs mediatr
Replacing service layer with MediatR - is it worth to do it?

Do you think it might be reasonable to replace my service layer or service classes with MediatR? For example, my …

c# asp.net-core domain-driven-design soa mediatr