Пример #1
0
        private async Task <JObject> GetOpenIdResult(string accessToken)
        {
            var response = await base.Backchannel.GetAsync(BuildOpenIdUrl(accessToken), Context.RequestAborted);

            response.EnsureSuccessStatusCode();
            var text = await response.Content.ReadAsStringAsync();

            return(QQConncetHelper.ParseOpenIdResult(text));
        }
Пример #2
0
        private async Task <JObject> GetOpenIdResult(string accessToken)
        {
            var response = await _httpClient.GetAsync(BuildOpenIdUrl(accessToken), Request.CallCancelled);

            response.EnsureSuccessStatusCode();
            var text = await response.Content.ReadAsStringAsync();

            return(QQConncetHelper.ParseOpenIdResult(text));
        }