2 writes to BytesReceived
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
909
_progress.
BytesReceived
+= bytesRead;
1841
BytesReceived
= 0;
8 references to BytesReceived
System.Net.WebClient (8)
System\Net\WebClient.cs (8)
910
if (_progress.
BytesReceived
!= _progress.TotalBytesToReceive)
921
_progress.TotalBytesToReceive = _progress.
BytesReceived
;
1807
if (asyncOp != null && (progress.BytesSent > 0 || progress.
BytesReceived
> 0))
1814
progressPercentage = progress.TotalBytesToReceive < 0 && progress.
BytesReceived
== 0 ?
1816
progress.TotalBytesToSend < 0 ? 50 : progress.TotalBytesToReceive == 0 ? 100 : (int)((50 * progress.
BytesReceived
) / progress.TotalBytesToReceive + 50);
1817
asyncOp.Post(_reportUploadProgressChanged!, new UploadProgressChangedEventArgs(progressPercentage, asyncOp.UserSuppliedState!, progress.BytesSent, progress.TotalBytesToSend, progress.
BytesReceived
, progress.TotalBytesToReceive));
1822
progressPercentage = progress.TotalBytesToReceive < 0 ? 0 : progress.TotalBytesToReceive == 0 ? 100 : (int)((100 * progress.
BytesReceived
) / progress.TotalBytesToReceive);
1823
asyncOp.Post(_reportDownloadProgressChanged!, new DownloadProgressChangedEventArgs(progressPercentage, asyncOp.UserSuppliedState!, progress.
BytesReceived
, progress.TotalBytesToReceive));