1 write to TotalBytesToSend
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
1840
TotalBytesToSend
= -1;
5 references to TotalBytesToSend
System.Net.WebClient (5)
System\Net\WebClient.cs (5)
1815
progress.
TotalBytesToSend
< 0 ? 0 : progress.
TotalBytesToSend
== 0 ? 50 : (int)((50 * progress.BytesSent) / progress.
TotalBytesToSend
) :
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));