2 writes to _currentRequest
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
544
_currentRequest
= request;
2042
_currentRequest
= null;
17 references to _currentRequest
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (2)
26
Debug.Assert(connection.
_currentRequest
!= null);
50
Debug.Assert(connection.
_currentRequest
!= null);
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (2)
32
Debug.Assert(connection.
_currentRequest
!= null);
46
Debug.Assert(connection.
_currentRequest
!= null);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (13)
419
Debug.Assert(
_currentRequest
is not null);
439
Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name,
_currentRequest
);
468
WriteString(cookiesFromContainer, encodingSelector?.Invoke(HttpKnownHeaderNames.Cookie,
_currentRequest
));
534
Debug.Assert(
_currentRequest
== null, $"Expected null {nameof(
_currentRequest
)}.");
1276
Encoding? valueEncoding = _pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name,
_currentRequest
!);
2005
Debug.Assert(
_currentRequest
== null);
2019
if (
_currentRequest
== null)
2038
Debug.Assert(
_currentRequest
!= null, "Expected the connection to be associated with a request.");
2084
Debug.Assert(response.RequestMessage ==
_currentRequest
);
2093
Debug.Assert(
_currentRequest
== null);
2100
Debug.Assert(
_currentRequest
== null, "Connection should no longer be associated with a request.");
2133
_currentRequest
?.GetHashCode() ?? 0, // request ID