1 instantiation of NetEventSource
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
79 references to NetEventSource
System.Net.Http.WinHttpHandler (79)
src\runtime\src\libraries\Common\src\Interop\Windows\SChannel\UnmanagedCertificateContext.IntPtr.cs (2)
39
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(certContext, $"Adding remote certificate:{cert}");
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly
NetEventSource
Log = new NetEventSource();
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (10)
40
if (
NetEventSource
.Log.IsEnabled())
42
NetEventSource
.Info(candidateCerts, $"Skipping current X509Certificate2 {cert.GetHashCode()} since it doesn't have private key. Certificate Subject: {cert.Subject}, Thumbprint: {cert.Thumbprint}.");
49
if (
NetEventSource
.Log.IsEnabled())
51
NetEventSource
.Info(candidateCerts, $"Choosing X509Certificate2 {cert.GetHashCode()} as the Client Certificate. Certificate Subject: {cert.Subject}, Thumbprint: {cert.Thumbprint}.");
57
if (
NetEventSource
.Log.IsEnabled())
59
NetEventSource
.Info(candidateCerts, "No eligible client certificate found.");
70
if (
NetEventSource
.Log.IsEnabled())
72
NetEventSource
.Info(cert, $"For Certificate {cert.GetHashCode()} - current X509EnhancedKeyUsageExtension {eku.GetHashCode()} is not valid for Client Authentication.");
78
if (
NetEventSource
.Log.IsEnabled())
80
NetEventSource
.Info(cert, $"For Certificate {cert.GetHashCode()} - current X509KeyUsageExtension {ku.GetHashCode()} is not valid for Digital Signature.");
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (2)
95
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(chainContext, $"CertVerifyCertificateChainPolicy returned: {errorCode}. Status: {status.dwError}");
System\Net\Http\WinHttpCookieContainerAdapter.cs (4)
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 (22)
823
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Proxy accessType={accessType}");
1010
if (
NetEventSource
.Log.IsEnabled() &&
1015
NetEventSource
.Error(this, $"Insecure https to http redirect from {state.RequestMessage.RequestUri} to {responseMessage.Headers.Location} blocked.");
1062
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"error={lastError}");
1150
if (
NetEventSource
.Log.IsEnabled())
1152
NetEventSource
.Info(this, "Failed to enable WINHTTP_OPTION_REQUIRE_STREAM_END error code: " + Marshal.GetLastWin32Error());
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 (26)
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())
393
NetEventSource
.Info(remoteCertificateStore, $"Adding cert to ExtraStore: {cert.Subject}");
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 (2)
194
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GCHandle=0x{ToIntPtr():X}, disposed={_disposed != 0}, disposing={disposing}");
System\Net\Http\WinHttpResponseParser.cs (2)
352
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(requestHandle, nameof(Interop.WinHttp.WINHTTP_PROTOCOL_FLAG_HTTP2));
System\Net\Http\WinHttpResponseStream.cs (4)
353
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info("before dispose");
355
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info("after dispose");
System\Net\Http\WinHttpTraceHelper.cs (4)
14
Debug.Assert(
NetEventSource
.Log.IsEnabled());
16
NetEventSource
.Info(
24
Debug.Assert(
NetEventSource
.Log.IsEnabled());
29
NetEventSource
.Error(