/// <summary>
 /// Define o progresso do download de dados.
 /// </summary>
 /// <param name="e"></param>
 public void OnProgressChanged(Colosoft.Net.UploadProgressChangedEventArgs e)
 {
     lock (Observers)
         foreach (var i in Observers)
         {
             i.OnProgressChanged(e);
         }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Método acionado quando o progresso do upload for atualizador.
        /// </summary>
        protected void OnProgressChanged()
        {
            var args = new Colosoft.Net.UploadProgressChangedEventArgs(TotalBytesSent, TotalBytesToSend);

            if (ProgressChanged != null)
            {
                ProgressChanged(this, args);
            }
            Observers.OnProgressChanged(args);
        }