C
C#2y ago
Foxtrek_64

MediatR - Can't create Responder [Answered]

Hi all, I'm pretty sure this is an issue with registering services, but for some reason MediatR says it can't create a responder. Here's how I register the services - I have the main runtime and two class libraries (the plugins)
services.AddMediatR(typeof(Program), typeof(ReportBuilderPlugin), typeof(DataPlugin));
services.AddMediatR(typeof(Program), typeof(ReportBuilderPlugin), typeof(DataPlugin));
All of my responders inherit from common base class which implements IRequestHandler<DownloadDataRequest<TResponse>, Result<TResponse>> This base responder provides some basic logging and generic functionality which is extended by some abstract methods in the implementers. Nothing I haven't done before. Thoughts of where this might be going wrong?
2 Replies
Foxtrek_64
Foxtrek_642y ago
I have refactored to remove the mediatr dependency.
Accord
Accord2y ago
✅ This post has been marked as answered!