3 writes to TotalBytesToReceive
System (3)
net\System\Net\webclient.cs (3)
1039
TotalBytesToReceive
= -1;
1125
Progress.
TotalBytesToReceive
= response.ContentLength;
1167
Progress.
TotalBytesToReceive
= Progress.BytesReceived;
9 references to TotalBytesToReceive
System (9)
net\System\Net\webclient.cs (9)
1166
if (Progress.
TotalBytesToReceive
< 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
));