예제 #1
0
 private void http_SendProgress(object sender, SocketProgressEventArgs e)
 {
     if (onUpdate != null)
     {
         onUpdate(this, e.BytesProceed, e.TotalBytes);
     }
 }
예제 #2
0
 protected internal virtual void OnProgress(SocketProgressEventArgs e)
 {
     if (Progress != null)
     {
         Progress(this, e);
     }
 }
예제 #3
0
        protected virtual void OnSendProgress(SocketProgressEventArgs e)
        {
            progressHandled = true;
            var handler = (SocketProgressEventHandler)base.Events[sendProgress];

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #4
0
 private void DoDataSendProgress(object sender, SocketProgressEventArgs e)
 {
     OnSendProgress(e);
 }
예제 #5
0
 private void DoDataReceiveProgress(object sender, SocketProgressEventArgs e)
 {
     OnReceiveProgress(e);
 }