question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MediatR.Examples.Lamar doesn't seem to be invoking any of the Exception Handlers

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kvattikuticommented, Jul 16, 2020

Sorry for late reply. Yes, it works.

0reactions
lilasquaredcommented, Jul 15, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found