MediatR.Examples.Lamar doesn't seem to be invoking any of the Exception Handlers
See original GitHub issueI am running MediatR.Examples.Lamar.Program (master) to learn MediatR to spike a solution for our project. The results show none of the exception handlers are being invoked. I updated Lamar to 4.3.0, same result. It also appears to the same for AspNetCore and StructureMap. It is not clear to me if it is bug with the Example or MediatR itself. Tried but couldn’t figure out where the bug is. Here’s the output from running Lamar example (I was expecting to see Y for exception handling tests):
Request Handler....................................................Y
Void Request Handler...............................................Y
Pipeline Behavior..................................................Y
Pre-Processor......................................................Y
Post-Processor.....................................................Y
Constrained Post-Processor.........................................Y
Ordered Behaviors..................................................Y
Notification Handler...............................................Y
Notification Handlers..............................................Y
Constrained Notification Handler...................................Y
Covariant Notification Handler.....................................Y
Handler for inherited request with same exception used.............N
Handler for inherited request with base exception used.............N
Handler for request with less specific exception used by priority..N
Preferred handler for inherited request with base exception used...N
Overridden handler for inherited request with same exception used..N
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Lamar with MediatR registering constructor dependencies ...
I am going to have to do this for every single handler? seems very tedious, the ClientAppContext dependencie is already registered in the ......
Read more >Microservices using MediatR on .Net Core 3.1 with ...
A query returns a DTO that does not encapsulate any domain knowledge. CQRS code can't automatically be generated from a database schema using...
Read more >New dependency injection features in .NET 6
In this post I talk about some of the new features added to Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.
Read more >Alternative to throwing Validation Exception in Mediatr ...
The reason we're using an exception here is because we've sent an action to MediatR with invalid data. Is that truly exceptional? If...
Read more >2022 Publication 970
Example 1. You received a scholarship of $2,500. The scholarship wasn't received under any of the exceptions mentioned above. As a condition for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for late reply. Yes, it works.
I don’t have a mac to test on, can you pull the latest commit on the branch I made and see if it works?