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)
103
if (NetEventSource.Log.IsEnabled())
Trace
("Connection closing.");
186
if (NetEventSource.Log.IsEnabled())
Trace
($"Error performing read ahead: {error}");
266
if (NetEventSource.Log.IsEnabled())
Trace
("Read-ahead task observed data before the request was sent.");
273
if (NetEventSource.Log.IsEnabled())
Trace
($"Error performing read ahead: {error}");
552
if (NetEventSource.Log.IsEnabled())
Trace
($"Sending request: {request}");
571
if (NetEventSource.Log.IsEnabled())
Trace
($"Request content is not null, start processing it. hasExpectContinueHeader = {hasExpectContinueHeader}");
635
Trace
($"Pre-emptive read completed asynchronously for a synchronous request.");
643
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
703
if (NetEventSource.Log.IsEnabled())
Trace
($"Current {response.StatusCode} response is an interim response or not expected, need to read for a final response.");
774
if (NetEventSource.Log.IsEnabled())
Trace
("Request is fully sent.");
837
if (NetEventSource.Log.IsEnabled())
Trace
($"Received response: {response}");
866
if (NetEventSource.Log.IsEnabled())
Trace
($"Error sending request: {error}");
968
if (NetEventSource.Log.IsEnabled()) connection.
Trace
("Cancellation requested. Disposing of the connection.");
996
if (NetEventSource.Log.IsEnabled())
Trace
("Finished sending request content.");
1013
if (NetEventSource.Log.IsEnabled())
Trace
($"Sending request content for Expect: 100-continue.");
1028
if (NetEventSource.Log.IsEnabled())
Trace
($"Canceling request content for Expect: 100-continue.");
1573
if (NetEventSource.Log.IsEnabled())
Trace
($"Writing {source.Length} bytes.");
1579
if (NetEventSource.Log.IsEnabled())
Trace
($"Writing {source.Length} bytes.");
1661
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1677
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1796
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {count} bytes.");
1821
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {count} bytes.");
1844
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1878
if (NetEventSource.Log.IsEnabled())
Trace
($"Received {bytesRead} bytes.");
1889
if (NetEventSource.Log.IsEnabled())
Trace
($"Copying {count} bytes to stream.");
2080
Trace
("Unexpected data on connection after response read.");
2146
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}");