public void UpdateProgress(float progress) { int bytesRead = (int)((long)(progress * contentLength) - totalBytesRead); ReadProgress(bytesRead); }