✅ Cannot resolve scoped service...
What I did wrong? Here's how I injected
IQueryHandler
s to DI:
Injection of dispatchers:
QueryDispatcher
:
3 Replies
Here's a guide from which I wrote this code: https://cezarypiatek.github.io/post/why-i-dont-use-mediatr-for-cqrs/
Cezary Piątek Blog
Why I don't use MediatR for CQRS
Is MediatR really suitable for implementing CQRS pattern?
are you trying to resolve scoped service inside singleton service ?
both looks like singleton
oh, really. thank you!