title: checking Internet connection with HttpClient
body: <p>I am having difficulties to understand on how the bellow code could handle occasional internet connection loss. Ideally I would like to pause the app, once the connection is lost, and resume when it is up again. Is there any guideline on how to do it? </p>
  
  <pre><code>HttpClientHandler clientHandler = new HttpClientHandler();
  clientHandler.UseDefaultCredentials = true;
  HttpClient client = new HttpClient(clientHandler) { MaxResponseContentBufferSize = 1000000 };
  
  HttpResponseMessage response = await client.GetAsync(Url, ct);
  </code></pre>