2 writes to BytesReceived
System (2)
net\System\Net\webclient.cs (2)
1038
BytesReceived
= 0;
1150
Progress.
BytesReceived
+= bytesRetrieved;
7 references to BytesReceived
System (7)
net\System\Net\webclient.cs (7)
1167
Progress.TotalBytesToReceive = Progress.
BytesReceived
;
2953
if (asyncOp != null && progress.BytesSent + progress.
BytesReceived
> 0)
2958
if (progress.TotalBytesToReceive < 0 && progress.
BytesReceived
== 0)
2964
progressPercentage = progress.TotalBytesToSend < 0 ? 50 : progress.TotalBytesToReceive == 0 ? 100 : (int) ((50 * progress.
BytesReceived
) / progress.TotalBytesToReceive + 50);
2966
asyncOp.Post(reportUploadProgressChanged, new UploadProgressChangedEventArgs(progressPercentage, asyncOp.UserSuppliedState, progress.BytesSent, progress.TotalBytesToSend, progress.
BytesReceived
, progress.TotalBytesToReceive));
2970
progressPercentage = progress.TotalBytesToReceive < 0 ? 0 : progress.TotalBytesToReceive == 0 ? 100 : (int) ((100 * progress.
BytesReceived
) / progress.TotalBytesToReceive);
2971
asyncOp.Post(reportDownloadProgressChanged, new DownloadProgressChangedEventArgs(progressPercentage, asyncOp.UserSuppliedState, progress.
BytesReceived
, progress.TotalBytesToReceive));