martinothamar / Mediator

A high performance implementation of Mediator pattern in .NET using source generators.
MIT License
2.16k stars 71 forks source link

Registering Request handlers with <T> #154

Open raz789 opened 3 months ago

raz789 commented 3 months ago

I have the following command handler:

public class GetWorldEventsCommandHandler<T> : IRequestHandler<GetWorldEventsQuery, IWorldEventEntity> where T : IWorldEventEntity

Is there anyway to register the above for a specific implementation? e.g. T is ContinentWorldEvent