Closed renato04 closed 2 weeks ago
It's because IRequestExceptionHandlerWrapper
is open generic and it's first parameter generic too
Try register GlobalRequestExceptionHandler
like this
services.AddScoped(typeof(IRequestExceptionHandler<Request, Response<RequestResponse>, NotImplementedException>), typeof(GlobalRequestExceptionHandler<Request, RequestResponse, NotImplementedException>));
And have a look to MediatR.Registration.ServiceRegistrar
class, which registering dependencies. You can also debug it =)
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
Hello! I have declared my handlers as following
Here is the DI configuration
My issue the
GlobalRequestExceptionHandler
is not catching the exception. Could anyone help me?