public static ICommandHandler <TCommand> GetCommandHandler <TCommand>(this IHandlerRegistry handlerRegistry) where TCommand : ICommand => (ICommandHandler <TCommand>)handlerRegistry.GetCommandHandler(typeof(TCommand));
public static ICommandHandler <TCommand> GetCommandHandler <TCommand>(this IHandlerRegistry handlerRegistry) where TCommand : ICommand => (ICommandHandler <TCommand>)handlerRegistry.GetCommandHandler(typeof(TCommand));