using Autofac; using PlanTempus.Core.CommandQueries; namespace PlanTempus.Components; public class CommandHandler(IComponentContext context) : ICommandHandler { public async Task Handle(TCommand command) where TCommand : ICommand { var handler = context.Resolve>(); return await handler.Handle(command); } }