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)
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)}."); 1276Encoding? valueEncoding = _pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _currentRequest!); 2005Debug.Assert(_currentRequest == null); 2019if (_currentRequest == null) 2038Debug.Assert(_currentRequest != null, "Expected the connection to be associated with a request."); 2084Debug.Assert(response.RequestMessage == _currentRequest); 2093Debug.Assert(_currentRequest == null); 2100Debug.Assert(_currentRequest == null, "Connection should no longer be associated with a request."); 2133_currentRequest?.GetHashCode() ?? 0, // request ID