Category "mediatr"

Is there a way to skip MediatR Pipeline?

I would like to cache some responses from CommandsHandlers. I Already did this using IPipelineBehaviour, but only 5% of my requests really must have cache, and

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 handlers following a CQRS approach. In ConfigureServi

System.ObjectDisposedException: 'Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope

I have an async controller and I am trying to call two different Async functions from it. like this public async void Approvefiles(string[] data) {

Return response with errors instead of throwing exception in validation pipeline mediatr 3

I am currently working with Pipeline behavior in Mediatr 3 for request validation. All the examples that I came across were throwing ValidationException if any

.NET Core console app Mediatr command handler doesn't get called

I'm facing a problem that Mediatr command handler is not called. I have the following solution structure. Project.sln -> Application layer (.NET standard cl

FluentValidation inside a MediatR pipeline and Razor Pages

I'm working on a project where everything is done through a mediatR pipeline. To make things easy the pipeline is this : -> Validation -> Handler The Vali

Fluent validation divide bussines validation from auth validaton

I'm using ASP, CQRS + MediatR and fluent validation. I want to implement user role validation, but I don't want to mix it with business logic validation. Do you