1 instantiation of NetEventSource
System.Net.Http (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
323 references to NetEventSource
System.Net.Http (323)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
41if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Match({UriPrefix} & {uri})"); 91if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Equals({this},{other}) returns {equals}");
src\libraries\Common\src\System\Net\DebugSafeHandle.cs (2)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (4)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (10)
40if (NetEventSource.Log.IsEnabled()) 42NetEventSource.Info(candidateCerts, $"Skipping current X509Certificate2 {cert.GetHashCode()} since it doesn't have private key. Certificate Subject: {cert.Subject}, Thumbprint: {cert.Thumbprint}."); 49if (NetEventSource.Log.IsEnabled()) 51NetEventSource.Info(candidateCerts, $"Choosing X509Certificate2 {cert.GetHashCode()} as the Client Certificate. Certificate Subject: {cert.Subject}, Thumbprint: {cert.Thumbprint}."); 57if (NetEventSource.Log.IsEnabled()) 59NetEventSource.Info(candidateCerts, "No eligible client certificate found."); 70if (NetEventSource.Log.IsEnabled()) 72NetEventSource.Info(cert, $"For Certificate {cert.GetHashCode()} - current X509EnhancedKeyUsageExtension {eku.GetHashCode()} is not valid for Client Authentication."); 78if (NetEventSource.Log.IsEnabled()) 80NetEventSource.Info(cert, $"For Certificate {cert.GetHashCode()} - current X509KeyUsageExtension {ku.GetHashCode()} is not valid for Digital Signature.");
System\Net\Http\DelegatingHandler.cs (2)
31if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, value);
System\Net\Http\Headers\ByteArrayHeaderParser.cs (2)
52if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_http_parser_invalid_base64_string, base64String, e.Message));
System\Net\Http\Headers\HeaderUtilities.cs (2)
138if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, SR.Format(SR.net_http_log_headers_invalid_quality, qualityParameter.Value));
System\Net\Http\Headers\HttpHeaders.cs (4)
804if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, SR.Format(SR.net_http_log_headers_no_newlines, descriptor.Name, rawValue)); 816if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.HeadersInvalidValue(descriptor.Name, rawValue);
System\Net\Http\HttpClient.cs (4)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.UriBaseAddress(this, value); 626if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e);
System\Net\Http\HttpContent.cs (8)
133if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 449if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e); 555if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e); 720if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e);
System\Net\Http\HttpMessageHandler.cs (2)
16if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System\Net\Http\HttpMessageInvoker.cs (2)
25if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, handler);
System\Net\Http\HttpRequestMessage.cs (3)
68if (NetEventSource.Log.IsEnabled()) 72NetEventSource.ContentNull(this); 76NetEventSource.Associate(this, value);
System\Net\Http\HttpResponseMessage.cs (5)
49if (NetEventSource.Log.IsEnabled()) 53NetEventSource.ContentNull(this); 57NetEventSource.Associate(this, value); 136if (value is not null && NetEventSource.Log.IsEnabled()) 137NetEventSource.Associate(this, value);
System\Net\Http\MultipartContent.cs (6)
178if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 228if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 301if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (20)
95if (NetEventSource.Log.IsEnabled()) 97NetEventSource.AuthenticationInfo(uri, $"Authentication scheme '{scheme}' supported by server, but not by client."); 103if (NetEventSource.Log.IsEnabled()) 105NetEventSource.AuthenticationInfo(uri, $"Authentication scheme '{scheme}' selected. Client username={challenge.Credential.UserName}"); 120if (NetEventSource.Log.IsEnabled()) 122NetEventSource.AuthenticationInfo(authUri, $"{(isProxyAuth ? "Proxy" : "Server")} authentication requested with WWW-Authenticate header value '{authenticationHeaderValues}'"); 194if (NetEventSource.Log.IsEnabled()) 196NetEventSource.AuthenticationError(request.RequestUri, $"Unable to find 'Digest' authentication token when authenticating with {(isProxyAuth ? "proxy" : "server")}"); 271if (NetEventSource.Log.IsEnabled()) 273NetEventSource.AuthenticationError(authUri, $"Pre-authentication with {(isProxyAuth ? "proxy" : "server")} failed."); 296if (NetEventSource.Log.IsEnabled()) 298NetEventSource.AuthenticationError(authUri, $"Pre-authentication with {(isProxyAuth ? "proxy" : "server")} failed."); 308if (NetEventSource.Log.IsEnabled()) 310NetEventSource.Info(pool.PreAuthCredentials, $"Removing Basic credential from cache, uri={preAuthCredentialUri}, username={preAuthCredential!.UserName}"); 318if (NetEventSource.Log.IsEnabled()) 320NetEventSource.Info(pool.PreAuthCredentials, $"Adding Basic credential to cache, uri={authUri}, username={challenge.Credential.UserName}"); 327if (NetEventSource.Log.IsEnabled()) 329NetEventSource.Info(pool.PreAuthCredentials, $"Basic credential present in cache, uri={authUri}, username={challenge.Credential.UserName}"); 340if (NetEventSource.Log.IsEnabled() && response.StatusCode == HttpStatusCode.Unauthorized) 342NetEventSource.AuthenticationError(authUri, $"{(isProxyAuth ? "Proxy" : "Server")} authentication failed.");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (6)
54if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, $"Algorithm not supported: {algorithm}"); 67if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, "Nonce missing"); 78if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, "Realm missing");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (8)
82if (NetEventSource.Log.IsEnabled()) 84NetEventSource.Error(connection, $"Proxy doesn't support connection-based auth, uri={authUri}"); 112if (NetEventSource.Log.IsEnabled()) 114NetEventSource.Info(connection, $"Authentication: {challenge.AuthenticationType}, Uri: {authUri.AbsoluteUri}"); 126if (NetEventSource.Log.IsEnabled()) 128NetEventSource.Info(connection, $"Authentication: {challenge.AuthenticationType}, Host: {hostName}"); 155if (NetEventSource.Log.IsEnabled()) 157NetEventSource.Info(connection, $"Authentication: {challenge.AuthenticationType}, SPN: {spn}");
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (2)
422if (NetEventSource.Log.IsEnabled()) 424NetEventSource.Error(this, $"Unexpected state: {_state}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (10)
259if (NetEventSource.Log.IsEnabled()) Trace($"{this}"); 287if (NetEventSource.Log.IsEnabled()) 289NetEventSource.Info(poolManager, $"Win7OrWin2K8R2 platform, Changing default TLS protocols to {SecurityProtocol.DefaultSecurityProtocols}"); 515if (NetEventSource.Log.IsEnabled()) 525if (NetEventSource.Log.IsEnabled()) 540if (NetEventSource.Log.IsEnabled()) 550if (NetEventSource.Log.IsEnabled()) 633if (NetEventSource.Log.IsEnabled()) 898if (NetEventSource.Log.IsEnabled()) Trace("Disposing the pool."); 1030NetEventSource.Log.HandlerMessage(
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (8)
41if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/1.1 connection in pool."); 48if (NetEventSource.Log.IsEnabled()) connection.Trace("Found invalid HTTP/1.1 connection in pool."); 53if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/1.1 connection in pool."); 231if (NetEventSource.Log.IsEnabled()) 252if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/1.1 connection for pool."); 309if (NetEventSource.Log.IsEnabled()) Trace($"HTTP/1.1 connection failed: {e}"); 331if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP/1.1 connection when returning to pool. Connection lifetime expired."); 341if (NetEventSource.Log.IsEnabled()) Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (19)
95if (NetEventSource.Log.IsEnabled()) Trace($"No available HTTP/2 connections; request queued."); 103if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/2 connection in pool."); 111if (NetEventSource.Log.IsEnabled()) connection.Trace("Found HTTP/2 connection in pool without available streams."); 132if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/2 connection in pool."); 152if (NetEventSource.Log.IsEnabled()) 174if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/2 connection for pool."); 273if (NetEventSource.Log.IsEnabled()) Trace($"HTTP2 connection failed: {e}"); 292if (NetEventSource.Log.IsEnabled()) Trace("Server does not support HTTP2; disabling HTTP2 use and proceeding with HTTP/1.1 connection"); 323if (NetEventSource.Log.IsEnabled()) Trace("Downgrading queued HTTP2 request to HTTP/1.1"); 339if (NetEventSource.Log.IsEnabled()) Trace("Discarding downgraded HTTP/1.1 connection because HTTP/1.1 connection limit is exceeded"); 366if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(isNewConnection)}={isNewConnection}"); 380if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP2 connection return to pool. Connection lifetime expired."); 451if (NetEventSource.Log.IsEnabled()) connection.Trace("Put HTTP2 connection in pool."); 457if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP2 connection returned to pool. Pool was disposed."); 474if (NetEventSource.Log.IsEnabled()) connection.Trace("New HTTP2 connection is unusable due to no available streams."); 500if (NetEventSource.Log.IsEnabled()) connection.Trace(""); 508if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(connection.WaitForAvailableStreamsAsync)} completed, {nameof(usable)}={usable}"); 527if (NetEventSource.Log.IsEnabled()) connection.Trace("HTTP2 connection no longer usable"); 538if (NetEventSource.Log.IsEnabled()) connection.Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (15)
154if (NetEventSource.Log.IsEnabled()) Trace($"No available HTTP/3 connections; request queued."); 162if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/3 connection in pool."); 172if (NetEventSource.Log.IsEnabled()) connection.Trace("Found HTTP/3 connection in pool without available streams."); 193if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/3 connection in pool."); 218if (NetEventSource.Log.IsEnabled()) 245if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/3 connection for pool."); 329if (NetEventSource.Log.IsEnabled()) Trace($"HTTP3 connection failed: {e}"); 360if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(isNewConnection)}={isNewConnection}"); 374if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP3 connection return to pool. Connection lifetime expired."); 449if (NetEventSource.Log.IsEnabled()) connection.Trace("Put HTTP3 connection in pool."); 455if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP3 connection returned to pool. Pool was disposed."); 484if (NetEventSource.Log.IsEnabled()) connection.Trace(""); 492if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(connection.WaitForAvailableStreamsAsync)} completed, {nameof(usable)}={usable}"); 511if (NetEventSource.Log.IsEnabled()) connection.Trace("HTTP3 connection no longer usable"); 527if (NetEventSource.Log.IsEnabled()) connection.Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
63if (NetEventSource.Log.IsEnabled()) connection.Trace("Dequeued waiting request."); 68if (NetEventSource.Log.IsEnabled()) 95if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
131if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\CookieHelper.cs (2)
31if (NetEventSource.Log.IsEnabled()) 33NetEventSource.Error(response, $"Invalid Set-Cookie '{valuesArray[i]}' ignored.");
System\Net\Http\SocketsHttpHandler\CreditManager.cs (4)
25if (NetEventSource.Log.IsEnabled()) owner.Trace($"{name}. {nameof(initialCredit)}={initialCredit}"); 60if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. requested={amount}, no credit available."); 90if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. {nameof(amount)}={amount}, current={_current}"); 170if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. requested={amount}, current={_current}, granted={granted}");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (50)
172if (NetEventSource.Log.IsEnabled()) TraceConnection(_stream); 220if (NetEventSource.Log.IsEnabled()) Trace($"Initial connection-level WINDOW_UPDATE, windowUpdateAmount={windowUpdateAmount}"); 257if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_shutdown)}={_shutdown}, {nameof(_abortException)}={_abortException}"); 307if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_streamsInUse)}={_streamsInUse}"); 358if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(result)}={result}, {nameof(_availableStreamsWaiter)}?={_availableStreamsWaiter is not null}"); 372if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 392if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(initialFrame)}={initialFrame}"); 429if (initialFrame && NetEventSource.Log.IsEnabled()) 488if (NetEventSource.Log.IsEnabled()) Trace($"Frame 0: {frameHeader}."); 547if (NetEventSource.Log.IsEnabled()) Trace($"Frame {frameNum}: {frameHeader}."); 600if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(ProcessIncomingFramesAsync)}: {e.Message}"); 634if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}"); 737if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}"); 839if (NetEventSource.Log.IsEnabled()) Trace($"Applying setting {(SettingId)settingId}={settingValue}"); 920if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(newValue)}={newValue}, {nameof(_streamsInUse)}={_streamsInUse}, {nameof(_availableStreamsWaiter)}?={_availableStreamsWaiter is not null}"); 934if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(newSize)}={newSize}"); 985if (NetEventSource.Log.IsEnabled()) Trace($"Received PING frame, content:{pingContentLong} ack: {frameHeader.AckFlag}"); 1008if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}. {nameof(amount)}={amount}"); 1058if (NetEventSource.Log.IsEnabled()) Trace(frameHeader.StreamId, $"{nameof(protocolError)}={protocolError}"); 1117if (NetEventSource.Log.IsEnabled()) Trace(frameHeader.StreamId, $"{nameof(lastStreamId)}={lastStreamId}, {nameof(errorCode)}={errorCode}"); 1231if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(writeBytes)}={writeBytes}"); 1264if (NetEventSource.Log.IsEnabled()) Trace($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 1277if (NetEventSource.Log.IsEnabled()) thisRef.Trace("Started writing."); 1289if (NetEventSource.Log.IsEnabled()) state.thisRef.Trace($"Started writing. {nameof(pingContent)}={state.pingContent}"); 1303if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(s.errorCode)}={s.errorCode}"); 1326if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(HeartBeat)}: {e.Message}"); 1339if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(index)}={index}"); 1352if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(index)}={index}, {nameof(value)}={value}"); 1365if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(name)}={name}, {nameof(values)}={string.Join(", ", values.ToArray())}"); 1378if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(values)}={string.Join(Encoding.ASCII.GetString(separator ?? []), values.ToArray())}"); 1391if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(value)}={value}"); 1404if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(bytes.Length)}={bytes.Length}"); 1413if (NetEventSource.Log.IsEnabled()) Trace(""); 1485if (NetEventSource.Log.IsEnabled()) Trace(""); 1650if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Started writing. Total header bytes={s.headerBytes.Length}"); 1663if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote HEADERS frame. Length={current.Length}, flags={flags}"); 1675if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote CONTINUATION frame. Length={current.Length}, flags={flags}"); 1728if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(writeBuffer.Length)}={writeBuffer.Length}"); 1748if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, "Started writing."); 1761if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(s.amount)}={s.amount}"); 1773if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(amount)}={amount}"); 1780if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_pendingWindowUpdate)} {_pendingWindowUpdate} < {ConnectionWindowThreshold}."); 1793if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_pendingWindowUpdate)}={_pendingWindowUpdate}"); 1805if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(abortException)}=={abortException}"); 1813if (NetEventSource.Log.IsEnabled()) Trace($"Abort called while already aborting. {nameof(abortException)}={abortException}"); 1839if (NetEventSource.Log.IsEnabled()) Trace(""); 1987if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 2032if (NetEventSource.Log.IsEnabled()) Trace($"Sending request content failed: {e}"); 2064if (NetEventSource.Log.IsEnabled()) Trace(http2Stream.StreamId, ""); 2151NetEventSource.Log.HandlerMessage(
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (24)
151if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(initialWindowSize)}={initialWindowSize}"); 186if (NetEventSource.Log.IsEnabled()) Trace($"{_request.Content}"); 238if (NetEventSource.Log.IsEnabled()) Trace($"Finished sending request body."); 242if (NetEventSource.Log.IsEnabled()) Trace($"Failed to send request body: {e}"); 336if (NetEventSource.Log.IsEnabled()) Trace($"Waiting to send request body content for 100-Continue."); 351if (NetEventSource.Log.IsEnabled()) thisRef.Trace($"100-Continue timer expired."); 370if (NetEventSource.Log.IsEnabled()) Trace($"Stream reset. Request={_requestCompletionState}, Response={_responseCompletionState}."); 387if (NetEventSource.Log.IsEnabled()) Trace($"Stream complete. Request={_requestCompletionState}, Response={_responseCompletionState}."); 404if (NetEventSource.Log.IsEnabled()) Trace(""); 559if (NetEventSource.Log.IsEnabled()) Trace($"Invalid request pseudo-header ID {index}."); 582if (NetEventSource.Log.IsEnabled()) Trace($"Invalid request pseudo-header ID {index}."); 615if (NetEventSource.Log.IsEnabled()) Trace($"Status code is {statusCode}"); 630if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header."); 637if (NetEventSource.Log.IsEnabled()) Trace($"Status pseudo-header received in {_responseProtocolState} state."); 651if (NetEventSource.Log.IsEnabled()) Trace("Received 100-Continue status."); 670if (NetEventSource.Log.IsEnabled()) Trace($"Expecting 100 Continue but received final status {statusCode}."); 679if (NetEventSource.Log.IsEnabled()) Trace($"{descriptor.Name}: {Encoding.ASCII.GetString(value)}"); 700if (NetEventSource.Log.IsEnabled()) Trace("Received header before status."); 744if (NetEventSource.Log.IsEnabled()) Trace($"Invalid response pseudo-header '{Encoding.ASCII.GetString(name)}'."); 803if (NetEventSource.Log.IsEnabled()) Trace("Trailing headers received without endStream"); 944if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(resetException)}={resetException}, {nameof(resetStreamErrorCode)}={resetStreamErrorCode}"); 1097if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {_response}"); 1560if (NetEventSource.Log.IsEnabled()) _http2Stream?.Trace(""); 1567if (NetEventSource.Log.IsEnabled()) _http2Stream?.Trace($"Error: {e}");
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (7)
30if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] InitialClientStreamWindowSize: {StreamWindowSize}, StreamWindowThreshold: {StreamWindowThreshold}, WindowScaleThresholdMultiplier: {WindowScaleThresholdMultiplier}"); 118if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] Updated Stream Window. StreamWindowSize: {StreamWindowSize}, StreamWindowThreshold: {StreamWindowThreshold}"); 123if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] StreamWindowSize reached the configured maximum of {MaxStreamWindowSize}."); 222if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Sending RTT PING with payload {_pingCounter}"); 233if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Unexpected PING ACK in state {_state}"); 248if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Unexpected RTT PING ACK payload {payload}, should be {_pingCounter}."); 277if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Updated MinRtt: {MinRtt.TotalMilliseconds} ms");
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (14)
148if (closeTask.IsFaulted && NetEventSource.Log.IsEnabled()) 181if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount}"); 199if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount}"); 215if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount} + bidirectionalStreamsCountIncrement = {args.BidirectionalIncrement}"); 316if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 353if (NetEventSource.Log.IsEnabled() && !ReferenceEquals(firstException, abortException)) 390if (NetEventSource.Log.IsEnabled()) 407if (NetEventSource.Log.IsEnabled()) 457NetEventSource.Log.HandlerMessage( 646if (NetEventSource.Log.IsEnabled()) 665NetEventSource.Info(this, $"Ignoring server-initiated stream of unknown type {unknownStreamType}."); 742if (NetEventSource.Log.IsEnabled()) 760if (NetEventSource.Log.IsEnabled()) 845if (NetEventSource.Log.IsEnabled()) Trace($"Applying setting {(Http3SettingType)settingId}={settingValue}");
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (11)
252if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {_response}"); 391if (NetEventSource.Log.IsEnabled()) 576if (NetEventSource.Log.IsEnabled()) 870if (NetEventSource.Log.IsEnabled()) 926if (NetEventSource.Log.IsEnabled()) Trace($"Server closed response stream before entire header payload could be read. {headersLength:N0} bytes remaining."); 975if (NetEventSource.Log.IsEnabled()) Trace($"Response contains invalid static header index '{index}'."); 991if (NetEventSource.Log.IsEnabled()) Trace($"Received unknown pseudo-header '{descriptor.Name}'."); 997if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header."); 1028if (NetEventSource.Log.IsEnabled()) Trace(message); 1065if (NetEventSource.Log.IsEnabled()) Trace($"Expecting 100 Continue but received final status {statusCode}."); 1088if (NetEventSource.Log.IsEnabled()) Trace($"Received headers without :status.");
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (30)
89if (NetEventSource.Log.IsEnabled()) TraceConnection(_stream); 102if (NetEventSource.Log.IsEnabled()) Trace("Connection closing."); 185if (NetEventSource.Log.IsEnabled()) Trace($"Error performing read ahead: {error}"); 265if (NetEventSource.Log.IsEnabled()) Trace("Read-ahead task observed data before the request was sent."); 272if (NetEventSource.Log.IsEnabled()) Trace($"Error performing read ahead: {error}"); 549if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 568if (NetEventSource.Log.IsEnabled()) Trace($"Request content is not null, start processing it. hasExpectContinueHeader = {hasExpectContinueHeader}"); 628if (NetEventSource.Log.IsEnabled() && !async) 638if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 698if (NetEventSource.Log.IsEnabled()) Trace($"Current {response.StatusCode} response is an interim response or not expected, need to read for a final response."); 769if (NetEventSource.Log.IsEnabled()) Trace("Request is fully sent."); 832if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {response}"); 861if (NetEventSource.Log.IsEnabled()) Trace($"Error sending request: {error}"); 963if (NetEventSource.Log.IsEnabled()) connection.Trace("Cancellation requested. Disposing of the connection."); 991if (NetEventSource.Log.IsEnabled()) Trace("Finished sending request content."); 1008if (NetEventSource.Log.IsEnabled()) Trace($"Sending request content for Expect: 100-continue."); 1023if (NetEventSource.Log.IsEnabled()) Trace($"Canceling request content for Expect: 100-continue."); 1568if (NetEventSource.Log.IsEnabled()) Trace($"Writing {source.Length} bytes."); 1574if (NetEventSource.Log.IsEnabled()) Trace($"Writing {source.Length} bytes."); 1634if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1650if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1769if (NetEventSource.Log.IsEnabled()) Trace($"Received {count} bytes."); 1787return NetEventSource.Log.IsEnabled() 1794if (NetEventSource.Log.IsEnabled()) Trace($"Received {count} bytes."); 1817if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1850if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1861if (NetEventSource.Log.IsEnabled()) Trace($"Copying {count} bytes to stream."); 2050if (NetEventSource.Log.IsEnabled()) 2110if (NetEventSource.Log.IsEnabled()) 2130NetEventSource.Log.HandlerMessage(
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
211if (NetEventSource.Log.IsEnabled()) connection.Trace($"Exception from asynchronous processing: {e}"); 228if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Idle {TimeSpan.FromMilliseconds(idleTicks)} > {pooledConnectionIdleTimeout}."); 239if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Lifetime {TimeSpan.FromMilliseconds(lifetimeTicks)} > {pooledConnectionLifetime}."); 246if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Keep-Alive timeout exceeded, unexpected data or EOF received.");
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (4)
193if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Exception when subscribing to NetworkChange.NetworkAddressChanged: {e}"); 407if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Exception from {_proxy.GetType().Name}.GetProxy({request.RequestUri}): {ex}");
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (2)
80if (NetEventSource.Log.IsEnabled()) 89if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (6)
23if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.UserName}]"); 40if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Removing key:[{key}]"); 56if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.UserName + ":" + mostSpecificMatch.Domain + ")")}");
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (2)
18if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (6)
43if (NetEventSource.Log.IsEnabled()) 60if (NetEventSource.Log.IsEnabled()) 69if (NetEventSource.Log.IsEnabled()) 134if (NetEventSource.Log.IsEnabled()) 172NetEventSource.Log.HandlerMessage(0, 0, requestId, memberName, ToString() + ": " + message); 175NetEventSource.Log.HandlerMessageError(0, 0, requestId, memberName, ToString() + ": " + message);
System\Net\Http\StreamContent.cs (2)
45if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, content);
System\Net\Http\StreamToStreamCopy.cs (2)
105if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, e);