44 references to Log
System.Net.Http.WinHttpHandler (44)
src\runtime\src\libraries\Common\src\Interop\Windows\SChannel\UnmanagedCertificateContext.IntPtr.cs (1)
39
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(certContext, $"Adding remote certificate:{cert}");
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (4)
61
Log
.Info(IdOf(thisOrContextObject), memberName, formattableString != null ? Format(formattableString) : NoParameters);
69
Log
.Info(IdOf(thisOrContextObject), memberName, Format(message));
86
Log
.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(formattableString));
94
Log
.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(message));
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (5)
40
if (NetEventSource.
Log
.IsEnabled())
49
if (NetEventSource.
Log
.IsEnabled())
57
if (NetEventSource.
Log
.IsEnabled())
70
if (NetEventSource.
Log
.IsEnabled())
78
if (NetEventSource.
Log
.IsEnabled())
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (1)
95
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(chainContext, $"CertVerifyCertificateChainPolicy returned: {errorCode}. Status: {status.dwError}");
System\Net\Http\WinHttpCookieContainerAdapter.cs (2)
39
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(cookieContainer, $"Added cookie: {cookieHeader}");
44
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(cookieContainer, $"Ignoring invalid cookie: {cookieHeader}");
System\Net\Http\WinHttpHandler.cs (11)
823
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, $"Proxy accessType={accessType}");
1010
if (NetEventSource.
Log
.IsEnabled() &&
1062
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(this, $"error={lastError}");
1150
if (NetEventSource.
Log
.IsEnabled())
1454
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, "HTTP/2 with TLS client cert supported");
1458
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, "HTTP/2 with TLS client cert not supported");
1469
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, "Multiple HTTP/2 connections enabled.");
1473
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, "Multiple HTTP/2 connections cannot be enabled.");
1521
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, $"HTTP/2 option supported, setting to {optionData}");
1525
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, "HTTP/2 option not supported");
1644
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(this, $"error={lastError}");
System\Net\Http\WinHttpRequestCallback.cs (14)
37
if (NetEventSource.
Log
.IsEnabled()) WinHttpTraceHelper.TraceCallbackStatus(null, handle, context, internetStatus);
41
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(null, "Environment.HasShutdownStarted returned True");
147
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(state, $"Removed cached certificate for {connectedIPAddress}");
151
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(state, $"No cached certificate for {connectedIPAddress} to remove");
291
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(state, $"Error getting WINHTTP_OPTION_SERVER_CERT_CONTEXT, {lastError}");
346
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(state, $"ipAddress: {ipAddress}");
352
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(state, $"Error getting WINHTTP_OPTION_CONNECTION_INFO, {lastError}");
364
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(state, $"Skipping certificate validation. ipAddress: {ipAddress}, Thumbprint: {serverCertificate.Thumbprint}");
370
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(state, $"Certificate validation is required! IPAddress = {ipAddress}, Thumbprint: {serverCertificate.Thumbprint}");
389
if (NetEventSource.
Log
.IsEnabled())
442
if (NetEventSource.
Log
.IsEnabled()) WinHttpTraceHelper.TraceAsyncError(state, asyncResult);
483
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(state, "QUERY_DATA_AVAILABLE - ERROR_WINHTTP_OPERATION_CANCELLED");
496
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(state, "API_READ_DATA - ERROR_WINHTTP_OPERATION_CANCELLED");
509
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(state, "API_WRITE_DATA - ERROR_WINHTTP_OPERATION_CANCELLED");
System\Net\Http\WinHttpRequestState.cs (1)
194
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, $"GCHandle=0x{ToIntPtr():X}, disposed={_disposed != 0}, disposing={disposing}");
System\Net\Http\WinHttpResponseParser.cs (1)
352
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(requestHandle, nameof(Interop.WinHttp.WINHTTP_PROTOCOL_FLAG_HTTP2));
System\Net\Http\WinHttpResponseStream.cs (2)
353
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info("before dispose");
355
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info("after dispose");
System\Net\Http\WinHttpTraceHelper.cs (2)
14
Debug.Assert(NetEventSource.
Log
.IsEnabled());
24
Debug.Assert(NetEventSource.
Log
.IsEnabled());