C
Join ServerC#
help
MediatR - Can't create Responder [Answered]
FFoxtrek_648/22/2022
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)
All of my responders inherit from common base class which implements
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?
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));
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?
FFoxtrek_648/22/2022
I have refactored to remove the mediatr dependency.
AAccord8/22/2022
✅ This post has been marked as answered!