26 references to Trace
System.Net.Http (26)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (9)
274
if (NetEventSource.Log.IsEnabled())
Trace
($"{this}");
525
Trace
($"MaxConnectionFailureRetries limit of {MaxConnectionFailureRetries} hit. Retryable request will not be retried. Exception: {e}");
535
Trace
($"Retry attempt {retryCount} after connection failure. Connection exception: {e}");
550
Trace
($"Retrying request because server requested version fallback: {e}");
650
Trace
($"Connected with custom SslStream: alpn='${sslStream.NegotiatedApplicationProtocol}'");
694
Trace
($"{nameof(SocketsHttpHandler.ConnectCallback)} completing asynchronously for a synchronous request.");
773
Trace
($"{nameof(SocketsHttpHandler.PlaintextStreamFilter)} completing asynchronously for a synchronous request.");
1013
if (NetEventSource.Log.IsEnabled())
Trace
($"Unexpected exception while evaluating connections for eviction: {e}");
1035
if (NetEventSource.Log.IsEnabled())
Trace
("Disposing the pool.");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (4)
233
Trace
($"Available HTTP/1.1 connections: {_http11Connections.Count}, Requests in the queue: {_http11RequestQueue.Count}, " +
252
if (NetEventSource.Log.IsEnabled())
Trace
("Creating new HTTP/1.1 connection for pool.");
308
if (NetEventSource.Log.IsEnabled())
Trace
($"HTTP/1.1 connection failed: {e}");
340
if (NetEventSource.Log.IsEnabled())
Trace
("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (7)
104
if (NetEventSource.Log.IsEnabled())
Trace
($"No available HTTP/2 connections; request queued.");
163
Trace
($"Available HTTP/2.0 connections: {availableHttp2ConnectionCount}, " +
183
if (NetEventSource.Log.IsEnabled())
Trace
("Creating new HTTP/2 connection for pool.");
281
if (NetEventSource.Log.IsEnabled())
Trace
($"HTTP2 connection failed: {e}");
312
if (NetEventSource.Log.IsEnabled())
Trace
("Server does not support HTTP2; disabling HTTP2 use and proceeding with HTTP/1.1 connection");
343
if (NetEventSource.Log.IsEnabled())
Trace
("Downgrading queued HTTP2 request to HTTP/1.1");
359
if (NetEventSource.Log.IsEnabled())
Trace
("Discarding downgraded HTTP/1.1 connection because HTTP/1.1 connection limit is exceeded");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (4)
156
if (NetEventSource.Log.IsEnabled())
Trace
($"No available HTTP/3 connections; request queued.");
225
Trace
($"Available HTTP/3.0 connections: {availableHttp3ConnectionCount}, " +
250
if (NetEventSource.Log.IsEnabled())
Trace
("Creating new HTTP/3 connection for pool.");
334
if (NetEventSource.Log.IsEnabled())
Trace
($"HTTP3 connection failed: {e}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
106
pool.
Trace
($"Initiating cancellation of a pending connection attempt with delay of {timeout} ms, " +
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
133
pool.
Trace
(queueItem.Waiter.Task.IsCanceled