private void http_SendProgress(object sender, SocketProgressEventArgs e) { if (onUpdate != null) { onUpdate(this, e.BytesProceed, e.TotalBytes); } }
protected internal virtual void OnProgress(SocketProgressEventArgs e) { if (Progress != null) { Progress(this, e); } }
protected virtual void OnSendProgress(SocketProgressEventArgs e) { progressHandled = true; var handler = (SocketProgressEventHandler)base.Events[sendProgress]; if (handler != null) { handler(this, e); } }
private void DoDataSendProgress(object sender, SocketProgressEventArgs e) { OnSendProgress(e); }
private void DoDataReceiveProgress(object sender, SocketProgressEventArgs e) { OnReceiveProgress(e); }