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