1 write to BytesWritten
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1533BytesWritten += buffer.Length;
4 references to BytesWritten
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (4)
229if (writeStream.BytesWritten < writeStream.ContentLength) 232throw new HttpRequestException(SR.Format(SR.net_http_request_content_length_mismatch, writeStream.BytesWritten, writeStream.ContentLength)); 235if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(writeStream.BytesWritten); 1535if ((ulong)BytesWritten > (ulong)ContentLength) // If ContentLength == -1, this will always be false