public MakeGetRequestWithAuthTestAsync ( String method ) : Task |
||
method | String | The method to call |
return | Task |
public async Task<RequestResponse> MakeGetRequestWithAuthTestAsync(String method)
{
var result = await MakeGetRequestAsync(method);
if (result.StatusCode == System.Net.HttpStatusCode.Unauthorized)
{
await RefreshTokenAsync();
result = await MakeGetRequestAsync(method);
}
return result;
}