Beispiel #1
0
        public Task SendAsync(ICommand command)
        {
            var executor = executorFactory.Create(command.GetType());

            return(executor.ExecuteAsync(command));
        }
Beispiel #2
0
        public Task SendAsync(ICommand command)
        {
            var executor = _executorFactory.Create(_serviceProvider, command.GetType());

            return(executor.ExecuteAsync(command));
        }