public Task HandleUnauthorizedResponseAsync(HttpWebResponse unauthorizedResponse)
{
if (conventions.HandleUnauthorizedResponseAsync == null)
return null;
var unauthorizedResponseAsync = conventions.HandleUnauthorizedResponseAsync(unauthorizedResponse);
if (unauthorizedResponseAsync == null)
return null;
return unauthorizedResponseAsync.ContinueWith(task => RecreateWebRequest(unauthorizedResponseAsync.Result));
}
#endif