예제 #1
0
        public async Task <IIntegrations> Handle(GetIntegrationsBySolutionIdQuery request, CancellationToken cancellationToken)
        {
            await _verifier.ThrowWhenMissingAsync(request.Id, cancellationToken).ConfigureAwait(false);

            var integrationsResult = (await _integrationsReader.BySolutionIdAsync(request.Id, cancellationToken).ConfigureAwait(false));

            return(_mapper.Map <IIntegrations>(integrationsResult));
        }
예제 #2
0
        public async Task <IIntegrations> Handle(GetIntegrationsBySolutionIdQuery request, CancellationToken cancellationToken)
        {
            await verifier.ThrowWhenMissingAsync(request.Id, cancellationToken);

            var integrationsResult = await integrationsReader.BySolutionIdAsync(request.Id, cancellationToken);

            return(mapper.Map <IIntegrations>(integrationsResult));
        }