2 writes to _currentRequest
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
547_currentRequest = request; 2070_currentRequest = null;
17 references to _currentRequest
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (2)
26Debug.Assert(connection._currentRequest != null); 50Debug.Assert(connection._currentRequest != null);
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (2)
33Debug.Assert(connection._currentRequest != null); 47Debug.Assert(connection._currentRequest != null);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (13)
420Debug.Assert(_currentRequest is not null); 440Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name, _currentRequest); 469WriteString(cookiesFromContainer, encodingSelector?.Invoke(HttpKnownHeaderNames.Cookie, _currentRequest)); 537Debug.Assert(_currentRequest == null, $"Expected null {nameof(_currentRequest)}."); 1281Encoding? valueEncoding = _pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _currentRequest!); 2033Debug.Assert(_currentRequest == null); 2047if (_currentRequest == null) 2066Debug.Assert(_currentRequest != null, "Expected the connection to be associated with a request."); 2117Debug.Assert(response.RequestMessage == _currentRequest); 2126Debug.Assert(_currentRequest == null); 2134Debug.Assert(_currentRequest == null, "Connection should no longer be associated with a request."); 2167_currentRequest?.GetHashCode() ?? 0, // request ID