Exemplo n.º 1
0
        public void Execute <T>(T command)
        {
            var handlers = _commandHandlerFactory.ResolveHandlers <T>();

            foreach (var handler in handlers)
            {
                handler.Handle(command);
            }
        }