Example #1
0
        public async Task Invoke(DownstreamContext context)
        {
            var response = await _requester.GetResponseAsync(context);

            if (response.IsError)
            {
                _logger.LogDebug("IHttpRequester returned an error, setting pipeline error");

                SetPipelineError(context, response.Errors);
                return;
            }

            _logger.LogDebug("setting http response message");

            context.DownstreamResponse = response.Data;
        }