public void Execute <T>(T command) { var handlers = _commandHandlerFactory.ResolveHandlers <T>(); foreach (var handler in handlers) { handler.Handle(command); } }