title: Progress info using HttpClient
body: <p>I wanted to implement progress bar using 'Windows.Web.Http.HttpClient' in Windows Phone 8.1 Silverlight.</p>
  
  <p><strong>Edit: First Attempt</strong>:</p>
  
  <pre><code>private async Task CheckProgress()
  {
      var df = httpClient.GetAsync(new Uri(uriString, UriKind.Absolute)).Progress = Progress;
  
      // here i want to stop the execution till whole content downloaded
  
      // Reason to wait here
      // this client download will be used by one more async method. so i need to wait here till the file completely downloaded.
  
      // this whole is done in this method only ( requirement)
  } 
  
  private void  Progress(IAsyncOperationWithProgress&lt;HttpResponseMessage, HttpProgress&gt; asyncInfo, HttpProgress progressInfo)
  {
     // here i getting the progress value.
     // i have already set a call back method that report the progress on the UI.
  }
  </code></pre>
  
  <p><strong>One more attempt</strong>: But getting the Exception <code>Invocation of delegate at wrong time.</code></p>
  
  <pre><code>private async Task CheckProgress()
  {
      var df = httpClient.GetAsync(new Uri(uriString, UriKind.Absolute))
  
      df.Progress =  Progress;
  
      await df;
      // here i want to stop the execution till whole content downloaded
  } 
  </code></pre>
  
  <p><strong>Question</strong>:</p>
  
  <p>All, I wanted is to stop the <code>CheckProgress()</code> Method to keep waiting till the whole download completed.</p>