© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
TheBrambleShark

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>>
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MediatR commands and DTOs [Answered]
C#CC# / help
4y ago