Example #1
0
 private static void Program_HttpReceiveProgress(object sender, HttpProgressEventArgs e)
 {
     Console.WriteLine($"Receive : {e.ProgressPercentage}");
 }
Example #2
0
 /// <summary>
 /// Raises the <see cref="HttpReceiveProgress"/> event.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="e">The <see cref="HttpProgressEventArgs"/> instance containing the event data.</param>
 protected internal virtual void OnHttpResponseProgress(HttpRequestMessage request, HttpProgressEventArgs e)
 {
     if (HttpReceiveProgress != null)
     {
         HttpReceiveProgress(request, e);
     }
 }