Example #1
0
 /// <summary>
 /// Método acionado quando o progresso da escrita dos dados do parametro for alterado.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ParameterWriteProgressChanged(object sender, Progress.ProgressChangedEventArgs e)
 {
     if (RequestProgressChanged != null)
     {
         RequestProgressChanged(this, e);
     }
 }
Example #2
0
 /// <summary>
 /// Método acionado quando o progresso da requisição for alterado.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ClientRequestProgressChanged(object sender, Progress.ProgressChangedEventArgs e)
 {
     if (OnProgress != null)
     {
         OnProgress(this, new ProgressEventArgs(true, e.Processed, e.Total));
     }
 }
Example #3
0
 /// <summary>
 /// Método acionado quando o progresso for alterado
 /// </summary>
 /// <param name="e"></param>
 public void OnProgressChanged(Progress.ProgressChangedEventArgs e)
 {
     lock (Observers)
         foreach (var i in Observers)
         {
             i.OnProgressChanged(e);
         }
 }