4 writes to BytesWritten
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (2)
23
BytesWritten
+= buffer.Length;
47
BytesWritten
+= buffer.Length;
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (2)
25
BytesWritten
+= buffer.Length;
39
BytesWritten
+= buffer.Length;
6 references to BytesWritten
System.Net.Http (6)
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (4)
27
if (
BytesWritten
> _contentLength)
41
if (
BytesWritten
> _contentLength)
53
if (
BytesWritten
!= _contentLength)
55
return Task.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(SR.Format(SR.net_http_request_content_length_mismatch,
BytesWritten
, _contentLength))));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
972
Debug.Assert(stream.
BytesWritten
== 0);
991
if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(stream.
BytesWritten
);