2 writes to _currentRequest
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
544_currentRequest = request; 2044_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)
32Debug.Assert(connection._currentRequest != null); 46Debug.Assert(connection._currentRequest != null);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (13)
419Debug.Assert(_currentRequest is not null); 439Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name, _currentRequest); 468WriteString(cookiesFromContainer, encodingSelector?.Invoke(HttpKnownHeaderNames.Cookie, _currentRequest)); 534Debug.Assert(_currentRequest == null, $"Expected null {nameof(_currentRequest)}."); 1278Encoding? valueEncoding = _pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _currentRequest!); 2007Debug.Assert(_currentRequest == null); 2021if (_currentRequest == null) 2040Debug.Assert(_currentRequest != null, "Expected the connection to be associated with a request."); 2091Debug.Assert(response.RequestMessage == _currentRequest); 2100Debug.Assert(_currentRequest == null); 2108Debug.Assert(_currentRequest == null, "Connection should no longer be associated with a request."); 2141_currentRequest?.GetHashCode() ?? 0, // request ID