public async Task <bool> HandleUnauthorizedResponseAsync(HttpResponseMessage unauthorizedResponse) { if (conventions.HandleUnauthorizedResponseAsync == null) { return(false); } var unauthorizedResponseAsync = conventions.HandleUnauthorizedResponseAsync(unauthorizedResponse, _credentials); if (unauthorizedResponseAsync == null) { return(false); } RecreateHttpClient(await unauthorizedResponseAsync.ConfigureAwait(false)); return(true); }