Base:
method
Trace
System.Net.Http.HttpConnectionBase.Trace(System.String, System.String)
33 references to Trace
System.Net.Http (33)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (4)
41
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Found expired HTTP/1.1 connection in pool.");
48
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Found invalid HTTP/1.1 connection in pool.");
53
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Found usable HTTP/1.1 connection in pool.");
330
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Disposing HTTP/1.1 connection when returning to pool. Connection lifetime expired.");
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (27)
102
if (NetEventSource.Log.IsEnabled())
Trace
("Connection closing.");
185
if (NetEventSource.Log.IsEnabled())
Trace
($"Error performing read ahead: {error}");
265
if (NetEventSource.Log.IsEnabled())
Trace
("Read-ahead task observed data before the request was sent.");
272
if (NetEventSource.Log.IsEnabled())
Trace
($"Error performing read ahead: {error}");
549
if (NetEventSource.Log.IsEnabled())
Trace
($"Sending request: {request}");
568
if (NetEventSource.Log.IsEnabled())
Trace
($"Request content is not null, start processing it. hasExpectContinueHeader = {hasExpectContinueHeader}");
632
Trace
($"Pre-emptive read completed asynchronously for a synchronous request.");
640
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
700
if (NetEventSource.Log.IsEnabled())
Trace
($"Current {response.StatusCode} response is an interim response or not expected, need to read for a final response.");
771
if (NetEventSource.Log.IsEnabled())
Trace
("Request is fully sent.");
834
if (NetEventSource.Log.IsEnabled())
Trace
($"Received response: {response}");
863
if (NetEventSource.Log.IsEnabled())
Trace
($"Error sending request: {error}");
965
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Cancellation requested. Disposing of the connection.");
993
if (NetEventSource.Log.IsEnabled())
Trace
("Finished sending request content.");
1010
if (NetEventSource.Log.IsEnabled())
Trace
($"Sending request content for Expect: 100-continue.");
1025
if (NetEventSource.Log.IsEnabled())
Trace
($"Canceling request content for Expect: 100-continue.");
1570
if (NetEventSource.Log.IsEnabled())
Trace
($"Writing {source.Length} bytes.");
1576
if (NetEventSource.Log.IsEnabled())
Trace
($"Writing {source.Length} bytes.");
1636
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1652
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1771
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {count} bytes.");
1796
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {count} bytes.");
1819
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1852
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1863
if (NetEventSource.Log.IsEnabled())
Trace
($"Copying {count} bytes to stream.");
2054
Trace
("Unexpected data on connection after response read.");
2120
Trace
("Connection will not be reused.");
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (2)
82
connection.
Trace
(drained ?
91
connection.
Trace
($"Connection drain failed due to exception: {e}");