3 writes to TotalBytesToReceive
System.Net.WebClient (3)
System\Net\WebClient.cs (3)
893
_progress.
TotalBytesToReceive
= contentLength;
921
_progress.
TotalBytesToReceive
= _progress.BytesReceived;
1842
TotalBytesToReceive
= -1;
10 references to TotalBytesToReceive
System.Net.WebClient (10)
System\Net\WebClient.cs (10)
910
if (_progress.BytesReceived != _progress.
TotalBytesToReceive
)
919
if (_progress.
TotalBytesToReceive
< 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
));