jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
11k stars 1.16k forks source link

List of records that have implemented "IRequest<>" #864

Closed gokmensercan closed 1 year ago

gokmensercan commented 1 year ago

How can I get all the handler name list in the project?

Is there a working method in "MediatR"?

image

jbogard commented 1 year ago

No, it's not something MediatR will be responsible for. It relies completely on the container to resolve handlers. MediatR can help register them, but it's not at all required. Your best bet is to look at how to enumerate services in your container and find handlers there.