Exemplo n.º 1
0
 /// <summary>
 /// Safely invokes event.
 /// </summary>
 public static void SafeInvoke(this WebClientEventHandler evt, object sender, WebClientEventArgs e)
 {
     if (evt != null)
     {
         evt(sender, e);
     }
 }
 internal void OnStopped(WebClientEventArgs e)
 {
     Stopped.SafeInvoke(this, e);
 }
 internal void OnProgress(WebClientEventArgs e)
 {
     Progress.SafeInvoke(this, e);
 }
 private void OnCompleted(WebClientEventArgs e)
 {
     Completed.SafeInvoke(this, e);
 }