Beispiel #1
0
        public async Task <TResponse> DispatchAsync <TCommand, TResponse>(TCommand command) where TCommand : ICommand <TResponse>
        {
            var handler = factory.Resolved <TCommand, TResponse>();

            return(await handler.HandleAsync(command));
        }