protected override async Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
            {
                request.RequestUri = await _discoveryClient.GetUriAsync(request.RequestUri, cancellationToken);

                return(await base.SendAsync(request, cancellationToken));
            }
Пример #2
0
        public async Task <IActionResult> OnGetAsync()
        {
            BaseAddress = await _client.GetUriAsync(new Uri("http://sample"));

            return(Page());
        }