// So far, I cannot use TEvent for the cast asIDomainEventHandler<TAggregateRoot, TAggregateIdentifier, TEvent>// Is resolved asIDomainEventHandler<MyAggregateRoot, MyAggregateIdentifier, IEvent<MyAggregateIdentifier>>// And notIDomainEventHandler<MyAggregateRoot, MyAggregateIdentifier, MyEvent>// As I expected it to be, so the cast fails
if(service is IEventHandler handler) await handler.HandleAsync(@event);