Http/AppleRestClient.cs
/// <summary>
/// Sends request to Apple's authorization endpoint.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Sends request to Apple's authorization endpoint.
Sends request to Apple ' s authorization endpoint .
internal async Task<string> SentTokenRequest(HttpRequestMessage request)
        {
            var response = await _httpClient.SendAsync(request);
            var content = await response.Content.ReadAsStringAsync();
            if (response.IsSuccessStatusCode == false)
            {
                throw new AppleRequestException(content);
            }
            return content;
        }
internal async Task < string > SentTokenRequest ( HttpRequestMessage request ) { var response = await _httpClient . SendAsync ( request ) ; var content = await response . Content . ReadAsStringAsync ( ) ; if ( response . IsSuccessStatusCode == false ) { throw new AppleRequestException ( content ) ; } return content ; }
Sends request to Apple's authorization endpoint.
Sends request to Apple ' s authorization endpoint .
None
request
HttpRequestMessage
None