1713 references to IsEnabled
Aspire.Hosting (30)
AspireEventSource.cs (30)
17if (IsEnabled()) 26if (IsEnabled()) 35if (IsEnabled()) 44if (IsEnabled()) 53if (IsEnabled()) 62if (IsEnabled()) 71if (IsEnabled()) 80if (IsEnabled()) 89if (IsEnabled()) 98if (IsEnabled()) 107if (IsEnabled()) 116if (IsEnabled()) 125if (IsEnabled()) 134if (IsEnabled()) 143if (IsEnabled()) 152if (IsEnabled()) 161if (IsEnabled()) 170if (IsEnabled()) 179if (IsEnabled()) 188if (IsEnabled()) 197if (IsEnabled()) 206if (IsEnabled()) 215if (IsEnabled()) 224if (IsEnabled()) 233if (IsEnabled()) 242if (IsEnabled()) 251if (IsEnabled()) 260if (IsEnabled()) 269if (IsEnabled()) 278if (IsEnabled())
dotnet-dev-certs (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
illink (2)
Microsoft.AspNetCore.ConcurrencyLimiter (3)
ConcurrencyLimiterEventSource.cs (3)
45if (IsEnabled()) 56if (IsEnabled()) 79if (_parent.IsEnabled() && _timer != null)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
74if (_eventSource.IsEnabled())
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
592if (HttpConnectionsEventSource.Log.IsEnabled() || MetricsContext.ConnectionDurationEnabled)
Internal\HttpConnectionsEventSource.cs (1)
43if (IsEnabled())
Microsoft.AspNetCore.Server.Kestrel.Core (34)
Internal\Infrastructure\KestrelEventSource.cs (3)
99if (IsEnabled()) 124if (IsEnabled()) 234if (IsEnabled())
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Microsoft.Build (9)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
659if (MSBuildEventSource.Log.IsEnabled())
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1165if (MSBuildEventSource.Log.IsEnabled()) 1222if (MSBuildEventSource.Log.IsEnabled())
Construction\ProjectRootElement.cs (2)
1551if (MSBuildEventSource.Log.IsEnabled()) 1584if (MSBuildEventSource.Log.IsEnabled())
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
113if (MSBuildEventSource.Log.IsEnabled()) 130if (MSBuildEventSource.Log.IsEnabled())
Graph\ProjectGraph.cs (2)
457if (MSBuildEventSource.Log.IsEnabled()) 477if (MSBuildEventSource.Log.IsEnabled())
Microsoft.CodeAnalysis (7)
CodeAnalysisEventSource.Common.cs (4)
42if (IsEnabled()) 70if (IsEnabled()) 131if (IsEnabled()) 157if (IsEnabled())
SourceGeneration\GeneratorDriver.cs (1)
383if (CodeAnalysisEventSource.Log.IsEnabled())
SourceGeneration\Nodes\InputNode.cs (1)
124if (!CodeAnalysisEventSource.Log.IsEnabled())
SourceGeneration\Nodes\NodeExtensions.cs (1)
14if (CodeAnalysisEventSource.Log.IsEnabled())
Microsoft.CodeAnalysis.Workspaces (5)
Log\EtwLogger.cs (1)
22=> _source.IsEnabled() && isEnabledPredicate(functionId);
src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (4)
42if (IsEnabled()) 70if (IsEnabled()) 131if (IsEnabled()) 157if (IsEnabled())
Microsoft.Extensions.Caching.Hybrid (5)
Internal\DefaultHybridCache.cs (1)
144bool eventSourceEnabled = HybridCacheEventSource.Log.IsEnabled();
Internal\DefaultHybridCache.L2.cs (1)
217if (HybridCacheEventSource.Log.IsEnabled())
Internal\DefaultHybridCache.StampedeStateT.cs (1)
169bool eventSourceEnabled = HybridCacheEventSource.Log.IsEnabled();
Internal\DefaultHybridCache.TagInvalidation.cs (1)
258if (HybridCacheEventSource.Log.IsEnabled())
Internal\HybridCacheEventSource.cs (1)
230Debug.Assert(IsEnabled(), $"Missing check to {nameof(HybridCacheEventSource)}.{nameof(Log)}.{nameof(IsEnabled)} from {caller}");
Microsoft.Extensions.Caching.Hybrid.Tests (2)
HybridCacheEventSourceTests.cs (1)
228Skip.IfNot(listener.Source.IsEnabled(), "Event source not enabled");
TestEventListener.cs (1)
40Assert.True(Source.IsEnabled(), "should report as enabled");
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpRequestLatencyListener.cs (1)
86if (Enabled && !eventSource.IsEnabled())
Microsoft.Extensions.Http.Diagnostics.Tests (10)
Latency\Internal\HttpRequestLatencyListenerTest.cs (10)
54Assert.False(es.IsEnabled()); 59Assert.False(esSockets.IsEnabled()); 64Assert.False(esHttp.IsEnabled()); 69Assert.False(esNameRes.IsEnabled()); 87Assert.False(es.IsEnabled()); 105Assert.True(esSockets.IsEnabled()); 110Assert.True(esHttp.IsEnabled()); 115Assert.True(esNameRes.IsEnabled()); 133Assert.True(esSockets.IsEnabled()); 137Assert.True(esSockets.IsEnabled());
Microsoft.Extensions.Logging.EventSource (4)
LoggingEventSource.cs (4)
223if (IsEnabled()) 234if (IsEnabled()) 311if (IsEnabled()) 337if (IsEnabled())
MSBuild (2)
XMake.cs (2)
689if (MSBuildEventSource.Log.IsEnabled()) 1096if (MSBuildEventSource.Log.IsEnabled())
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentBag.cs (1)
172if (CDSCollectionETWBCLProvider.Log.IsEnabled())
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2063if (CDSCollectionETWBCLProvider.Log.IsEnabled())
System\Collections\Concurrent\ConcurrentStack.cs (3)
381if (CDSCollectionETWBCLProvider.Log.IsEnabled()) 595if (count == 1 && CDSCollectionETWBCLProvider.Log.IsEnabled()) 613if (count == 1 && CDSCollectionETWBCLProvider.Log.IsEnabled())
System.Data.Common (11)
System\Data\Common\DataCommonEventSource.cs (11)
30if (!Log.IsEnabled()) return; 37if (!Log.IsEnabled()) return; 44if (!Log.IsEnabled()) return; 51if (!Log.IsEnabled()) return; 58if (!Log.IsEnabled()) return; 65if (!Log.IsEnabled()) return; 73if (Log.IsEnabled()) 85internal long EnterScope<T1>(string format, T1 arg1) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1)) : 0; 88internal long EnterScope<T1, T2>(string format, T1 arg1, T2 arg2) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2)) : 0; 91internal long EnterScope<T1, T2, T3>(string format, T1 arg1, T2 arg2, T3 arg3) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2, arg3)) : 0; 94internal long EnterScope<T1, T2, T3, T4>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2, arg3, arg4)) : 0;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
531|| !Parent.IsEnabled());
System.Net.Http (295)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
41if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Match({UriPrefix} & {uri})"); 91if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Equals({this},{other}) returns {equals}");
src\libraries\Common\src\System\Net\DebugSafeHandle.cs (1)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (2)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
35Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
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())
System\Net\Http\DelegatingHandler.cs (1)
31if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, value);
System\Net\Http\Headers\ByteArrayHeaderParser.cs (1)
52if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_http_parser_invalid_base64_string, base64String, e.Message));
System\Net\Http\Headers\HeaderUtilities.cs (1)
138if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, SR.Format(SR.net_http_log_headers_invalid_quality, qualityParameter.Value));
System\Net\Http\Headers\HttpHeaders.cs (2)
866if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, SR.Format(SR.net_http_log_headers_no_newlines, descriptor.Name, rawValue)); 878if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.HeadersInvalidValue(descriptor.Name, rawValue);
System\Net\Http\HttpClient.cs (8)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.UriBaseAddress(this, value); 194if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 266if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 474if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 529if (HttpTelemetry.Log.IsEnabled() && telemetryStarted) 619if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e); 629if (HttpTelemetry.Log.IsEnabled()) 641if (HttpTelemetry.Log.IsEnabled() && telemetryStarted)
System\Net\Http\HttpContent.cs (3)
75if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 407if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e); 671if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e);
System\Net\Http\HttpMessageHandler.cs (1)
16if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System\Net\Http\HttpMessageInvoker.cs (3)
25if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, handler); 100HttpTelemetry.Log.IsEnabled() && 107if (HttpTelemetry.Log.IsEnabled() && telemetryStarted)
System\Net\Http\HttpRequestMessage.cs (1)
69if (NetEventSource.Log.IsEnabled())
System\Net\Http\HttpResponseMessage.cs (2)
49if (NetEventSource.Log.IsEnabled()) 136if (value is not null && NetEventSource.Log.IsEnabled())
System\Net\Http\MultipartContent.cs (3)
178if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 228if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 301if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Http\NetEventSource.Http.cs (4)
24Debug.Assert(Log.IsEnabled()); 35Debug.Assert(Log.IsEnabled()); 58Debug.Assert(Log.IsEnabled()); 69Debug.Assert(Log.IsEnabled());
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (10)
95if (NetEventSource.Log.IsEnabled()) 103if (NetEventSource.Log.IsEnabled()) 120if (NetEventSource.Log.IsEnabled()) 194if (NetEventSource.Log.IsEnabled()) 283if (NetEventSource.Log.IsEnabled()) 308if (NetEventSource.Log.IsEnabled()) 320if (NetEventSource.Log.IsEnabled()) 330if (NetEventSource.Log.IsEnabled()) 339if (NetEventSource.Log.IsEnabled()) 352if (NetEventSource.Log.IsEnabled() && response.StatusCode == HttpStatusCode.Unauthorized)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (3)
54if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, $"Algorithm not supported: {algorithm}"); 67if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, "Nonce missing"); 78if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(digestResponse, "Realm missing");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (4)
82if (NetEventSource.Log.IsEnabled()) 112if (NetEventSource.Log.IsEnabled()) 126if (NetEventSource.Log.IsEnabled()) 155if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
422if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (7)
258if (NetEventSource.Log.IsEnabled()) Trace($"{this}"); 500if (NetEventSource.Log.IsEnabled()) 510if (NetEventSource.Log.IsEnabled()) 525if (NetEventSource.Log.IsEnabled()) 535if (NetEventSource.Log.IsEnabled()) 618if (NetEventSource.Log.IsEnabled()) 907if (NetEventSource.Log.IsEnabled()) Trace("Disposing the pool.");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (8)
41if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/1.1 connection in pool."); 48if (NetEventSource.Log.IsEnabled()) connection.Trace("Found invalid HTTP/1.1 connection in pool."); 53if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/1.1 connection in pool."); 231if (NetEventSource.Log.IsEnabled()) 252if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/1.1 connection for pool."); 308if (NetEventSource.Log.IsEnabled()) Trace($"HTTP/1.1 connection failed: {e}"); 330if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP/1.1 connection when returning to pool. Connection lifetime expired."); 340if (NetEventSource.Log.IsEnabled()) Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (19)
95if (NetEventSource.Log.IsEnabled()) Trace($"No available HTTP/2 connections; request queued."); 103if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/2 connection in pool."); 111if (NetEventSource.Log.IsEnabled()) connection.Trace("Found HTTP/2 connection in pool without available streams."); 132if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/2 connection in pool."); 152if (NetEventSource.Log.IsEnabled()) 174if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/2 connection for pool."); 272if (NetEventSource.Log.IsEnabled()) Trace($"HTTP2 connection failed: {e}"); 291if (NetEventSource.Log.IsEnabled()) Trace("Server does not support HTTP2; disabling HTTP2 use and proceeding with HTTP/1.1 connection"); 322if (NetEventSource.Log.IsEnabled()) Trace("Downgrading queued HTTP2 request to HTTP/1.1"); 338if (NetEventSource.Log.IsEnabled()) Trace("Discarding downgraded HTTP/1.1 connection because HTTP/1.1 connection limit is exceeded"); 365if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(isNewConnection)}={isNewConnection}"); 379if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP2 connection return to pool. Connection lifetime expired."); 450if (NetEventSource.Log.IsEnabled()) connection.Trace("Put HTTP2 connection in pool."); 456if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP2 connection returned to pool. Pool was disposed."); 473if (NetEventSource.Log.IsEnabled()) connection.Trace("New HTTP2 connection is unusable due to no available streams."); 499if (NetEventSource.Log.IsEnabled()) connection.Trace(""); 507if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(connection.WaitForAvailableStreamsAsync)} completed, {nameof(usable)}={usable}"); 526if (NetEventSource.Log.IsEnabled()) connection.Trace("HTTP2 connection no longer usable"); 537if (NetEventSource.Log.IsEnabled()) connection.Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (15)
155if (NetEventSource.Log.IsEnabled()) Trace($"No available HTTP/3 connections; request queued."); 164if (NetEventSource.Log.IsEnabled()) connection.Trace("Found expired HTTP/3 connection in pool."); 176if (NetEventSource.Log.IsEnabled()) connection.Trace("Found HTTP/3 connection in pool without available streams."); 197if (NetEventSource.Log.IsEnabled()) connection.Trace("Found usable HTTP/3 connection in pool."); 222if (NetEventSource.Log.IsEnabled()) 249if (NetEventSource.Log.IsEnabled()) Trace("Creating new HTTP/3 connection for pool."); 332if (NetEventSource.Log.IsEnabled()) Trace($"HTTP3 connection failed: {e}"); 363if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(isNewConnection)}={isNewConnection}"); 377if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP3 connection return to pool. Connection lifetime expired."); 450if (NetEventSource.Log.IsEnabled()) connection.Trace("Put HTTP3 connection in pool."); 456if (NetEventSource.Log.IsEnabled()) connection.Trace("Disposing HTTP3 connection returned to pool. Pool was disposed."); 485if (NetEventSource.Log.IsEnabled()) connection.Trace(""); 493if (NetEventSource.Log.IsEnabled()) connection.Trace($"{nameof(connection.WaitForAvailableStreamsAsync)} completed, {nameof(usable)}={usable}"); 512if (NetEventSource.Log.IsEnabled()) connection.Trace("HTTP3 connection no longer usable"); 528if (NetEventSource.Log.IsEnabled()) connection.Trace("");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (6)
22bool withTelemetry = HttpTelemetry.Log.IsEnabled() 49if (HttpTelemetry.Log.IsEnabled() || GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) 58if (HttpTelemetry.Log.IsEnabled()) 72if (NetEventSource.Log.IsEnabled()) connection.Trace("Dequeued waiting request."); 77if (NetEventSource.Log.IsEnabled()) 104if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
131if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\CookieHelper.cs (1)
31if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\CreditManager.cs (4)
25if (NetEventSource.Log.IsEnabled()) owner.Trace($"{name}. {nameof(initialCredit)}={initialCredit}"); 60if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. requested={amount}, no credit available."); 90if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. {nameof(amount)}={amount}, current={_current}"); 170if (NetEventSource.Log.IsEnabled()) _owner.Trace($"{_name}. requested={amount}, current={_current}, granted={granted}");
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (51)
172if (NetEventSource.Log.IsEnabled()) TraceConnection(_stream); 222if (NetEventSource.Log.IsEnabled()) Trace($"Initial connection-level WINDOW_UPDATE, windowUpdateAmount={windowUpdateAmount}"); 270if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_shutdown)}={_shutdown}, {nameof(_abortException)}={_abortException}"); 320if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_streamsInUse)}={_streamsInUse}"); 371if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(result)}={result}, {nameof(_availableStreamsWaiter)}?={_availableStreamsWaiter is not null}"); 385if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_outgoingBuffer.ActiveLength)}={_outgoingBuffer.ActiveLength}"); 405if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(initialFrame)}={initialFrame}"); 442if (initialFrame && NetEventSource.Log.IsEnabled()) 501if (NetEventSource.Log.IsEnabled()) Trace($"Frame 0: {frameHeader}."); 560if (NetEventSource.Log.IsEnabled()) Trace($"Frame {frameNum}: {frameHeader}."); 613if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(ProcessIncomingFramesAsync)}: {e.Message}"); 647if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}"); 750if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}"); 852if (NetEventSource.Log.IsEnabled()) Trace($"Applying setting {(SettingId)settingId}={settingValue}"); 933if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(newValue)}={newValue}, {nameof(_streamsInUse)}={_streamsInUse}, {nameof(_availableStreamsWaiter)}?={_availableStreamsWaiter is not null}"); 947if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(newSize)}={newSize}"); 998if (NetEventSource.Log.IsEnabled()) Trace($"Received PING frame, content:{pingContentLong} ack: {frameHeader.AckFlag}"); 1021if (NetEventSource.Log.IsEnabled()) Trace($"{frameHeader}. {nameof(amount)}={amount}"); 1071if (NetEventSource.Log.IsEnabled()) Trace(frameHeader.StreamId, $"{nameof(protocolError)}={protocolError}"); 1130if (NetEventSource.Log.IsEnabled()) Trace(frameHeader.StreamId, $"{nameof(lastStreamId)}={lastStreamId}, {nameof(errorCode)}={errorCode}"); 1244if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(writeBytes)}={writeBytes}"); 1277if (NetEventSource.Log.IsEnabled()) Trace($"Unexpected exception in {nameof(ProcessOutgoingFramesAsync)}: {e}"); 1290if (NetEventSource.Log.IsEnabled()) thisRef.Trace("Started writing."); 1302if (NetEventSource.Log.IsEnabled()) state.thisRef.Trace($"Started writing. {nameof(pingContent)}={state.pingContent}"); 1316if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(s.errorCode)}={s.errorCode}"); 1339if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(HeartBeat)}: {e.Message}"); 1352if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(index)}={index}"); 1365if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(index)}={index}, {nameof(value)}={value}"); 1378if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(name)}={name}, {nameof(values)}={string.Join(", ", values.ToArray())}"); 1391if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(values)}={string.Join(Encoding.ASCII.GetString(separator ?? []), values.ToArray())}"); 1404if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(value)}={value}"); 1417if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(bytes.Length)}={bytes.Length}"); 1426if (NetEventSource.Log.IsEnabled()) Trace(""); 1498if (NetEventSource.Log.IsEnabled()) Trace(""); 1638if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(Id); 1663if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Started writing. Total header bytes={s.headerBytes.Length}"); 1676if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote HEADERS frame. Length={current.Length}, flags={flags}"); 1688if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote CONTINUATION frame. Length={current.Length}, flags={flags}"); 1696if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop(); 1741if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(writeBuffer.Length)}={writeBuffer.Length}"); 1761if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, "Started writing."); 1774if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.streamId, $"Started writing. {nameof(s.amount)}={s.amount}"); 1786if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(amount)}={amount}"); 1793if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_pendingWindowUpdate)} {_pendingWindowUpdate} < {ConnectionWindowThreshold}."); 1806if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(_pendingWindowUpdate)}={_pendingWindowUpdate}"); 1818if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(abortException)}=={abortException}"); 1826if (NetEventSource.Log.IsEnabled()) Trace($"Abort called while already aborting. {nameof(abortException)}={abortException}"); 1852if (NetEventSource.Log.IsEnabled()) Trace(""); 2000if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 2045if (NetEventSource.Log.IsEnabled()) Trace($"Sending request content failed: {e}"); 2077if (NetEventSource.Log.IsEnabled()) Trace(http2Stream.StreamId, "");
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (28)
151if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(initialWindowSize)}={initialWindowSize}"); 186if (NetEventSource.Log.IsEnabled()) Trace($"{_request.Content}"); 212if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 235if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(writeStream.BytesWritten); 238if (NetEventSource.Log.IsEnabled()) Trace($"Finished sending request body."); 242if (NetEventSource.Log.IsEnabled()) Trace($"Failed to send request body: {e}"); 336if (NetEventSource.Log.IsEnabled()) Trace($"Waiting to send request body content for 100-Continue."); 351if (NetEventSource.Log.IsEnabled()) thisRef.Trace($"100-Continue timer expired."); 370if (NetEventSource.Log.IsEnabled()) Trace($"Stream reset. Request={_requestCompletionState}, Response={_responseCompletionState}."); 387if (NetEventSource.Log.IsEnabled()) Trace($"Stream complete. Request={_requestCompletionState}, Response={_responseCompletionState}."); 404if (NetEventSource.Log.IsEnabled()) Trace(""); 559if (NetEventSource.Log.IsEnabled()) Trace($"Invalid request pseudo-header ID {index}."); 582if (NetEventSource.Log.IsEnabled()) Trace($"Invalid request pseudo-header ID {index}."); 615if (NetEventSource.Log.IsEnabled()) Trace($"Status code is {statusCode}"); 630if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header."); 637if (NetEventSource.Log.IsEnabled()) Trace($"Status pseudo-header received in {_responseProtocolState} state."); 651if (NetEventSource.Log.IsEnabled()) Trace("Received 100-Continue status."); 670if (NetEventSource.Log.IsEnabled()) Trace($"Expecting 100 Continue but received final status {statusCode}."); 679if (NetEventSource.Log.IsEnabled()) Trace($"{descriptor.Name}: {Encoding.ASCII.GetString(value)}"); 700if (NetEventSource.Log.IsEnabled()) Trace("Received header before status."); 744if (NetEventSource.Log.IsEnabled()) Trace($"Invalid response pseudo-header '{Encoding.ASCII.GetString(name)}'."); 803if (NetEventSource.Log.IsEnabled()) Trace("Trailing headers received without endStream"); 944if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(resetException)}={resetException}, {nameof(resetStreamErrorCode)}={resetStreamErrorCode}"); 1055if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 1071if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode); 1097if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {_response}"); 1560if (NetEventSource.Log.IsEnabled()) _http2Stream?.Trace(""); 1567if (NetEventSource.Log.IsEnabled()) _http2Stream?.Trace($"Error: {e}");
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (7)
30if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] InitialClientStreamWindowSize: {StreamWindowSize}, StreamWindowThreshold: {StreamWindowThreshold}, WindowScaleThresholdMultiplier: {WindowScaleThresholdMultiplier}"); 118if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] Updated Stream Window. StreamWindowSize: {StreamWindowSize}, StreamWindowThreshold: {StreamWindowThreshold}"); 123if (NetEventSource.Log.IsEnabled()) stream.Trace($"[FlowControl] StreamWindowSize reached the configured maximum of {MaxStreamWindowSize}."); 222if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Sending RTT PING with payload {_pingCounter}"); 233if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Unexpected PING ACK in state {_state}"); 248if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Unexpected RTT PING ACK payload {payload}, should be {_pingCounter}."); 277if (NetEventSource.Log.IsEnabled()) connection.Trace($"[FlowControl] Updated MinRtt: {MinRtt.TotalMilliseconds} ms");
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (14)
153if (closeTask.IsFaulted && NetEventSource.Log.IsEnabled()) 193if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount}"); 214if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount}"); 230if (NetEventSource.Log.IsEnabled()) Trace($"_availableRequestStreamsCount = {_availableRequestStreamsCount} + bidirectionalStreamsCountIncrement = {args.BidirectionalIncrement}"); 332if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 369if (NetEventSource.Log.IsEnabled() && !ReferenceEquals(firstException, abortException)) 408if (NetEventSource.Log.IsEnabled()) 427if (NetEventSource.Log.IsEnabled()) 666if (NetEventSource.Log.IsEnabled()) 762if (NetEventSource.Log.IsEnabled()) 780if (NetEventSource.Log.IsEnabled()) 865if (NetEventSource.Log.IsEnabled()) Trace($"Applying setting {(Http3SettingType)settingId}={settingValue}"); 965_startTimestamp = HttpTelemetry.Log.IsEnabled() || (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled && _settings._metrics!.RequestsQueueDuration.Enabled) ? Stopwatch.GetTimestamp() : 0; 987if (HttpTelemetry.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (17)
272if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {_response}"); 408if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 419if (NetEventSource.Log.IsEnabled()) 433if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode); 479if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 514if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(bytesWritten); 619if (NetEventSource.Log.IsEnabled()) 666if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(_connection.Id); 771if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop(); 932if (NetEventSource.Log.IsEnabled()) 988if (NetEventSource.Log.IsEnabled()) Trace($"Server closed response stream before entire header payload could be read. {headersLength:N0} bytes remaining."); 1037if (NetEventSource.Log.IsEnabled()) Trace($"Response contains invalid static header index '{index}'."); 1053if (NetEventSource.Log.IsEnabled()) Trace($"Received unknown pseudo-header '{descriptor.Name}'."); 1059if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header."); 1090if (NetEventSource.Log.IsEnabled()) Trace(message); 1127if (NetEventSource.Log.IsEnabled()) Trace($"Expecting 100 Continue but received final status {statusCode}."); 1150if (NetEventSource.Log.IsEnabled()) Trace($"Received headers without :status.");
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (35)
89if (NetEventSource.Log.IsEnabled()) TraceConnection(_stream); 102if (NetEventSource.Log.IsEnabled()) Trace("Connection closing."); 185if (NetEventSource.Log.IsEnabled()) Trace($"Error performing read ahead: {error}"); 265if (NetEventSource.Log.IsEnabled()) Trace("Read-ahead task observed data before the request was sent."); 272if (NetEventSource.Log.IsEnabled()) Trace($"Error performing read ahead: {error}"); 549if (NetEventSource.Log.IsEnabled()) Trace($"Sending request: {request}"); 554if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStart(Id); 558if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestHeadersStop(); 568if (NetEventSource.Log.IsEnabled()) Trace($"Request content is not null, start processing it. hasExpectContinueHeader = {hasExpectContinueHeader}"); 630if (NetEventSource.Log.IsEnabled() && !async) 640if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 672if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStart(); 700if (NetEventSource.Log.IsEnabled()) Trace($"Current {response.StatusCode} response is an interim response or not expected, need to read for a final response."); 721if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)response.StatusCode); 771if (NetEventSource.Log.IsEnabled()) Trace("Request is fully sent."); 834if (NetEventSource.Log.IsEnabled()) Trace($"Received response: {response}"); 863if (NetEventSource.Log.IsEnabled()) Trace($"Error sending request: {error}"); 965if (NetEventSource.Log.IsEnabled()) connection.Trace("Cancellation requested. Disposing of the connection."); 973if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStart(); 991if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.RequestContentStop(stream.BytesWritten); 993if (NetEventSource.Log.IsEnabled()) Trace("Finished sending request content."); 1010if (NetEventSource.Log.IsEnabled()) Trace($"Sending request content for Expect: 100-continue."); 1025if (NetEventSource.Log.IsEnabled()) Trace($"Canceling request content for Expect: 100-continue."); 1570if (NetEventSource.Log.IsEnabled()) Trace($"Writing {source.Length} bytes."); 1576if (NetEventSource.Log.IsEnabled()) Trace($"Writing {source.Length} bytes."); 1636if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1652if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1771if (NetEventSource.Log.IsEnabled()) Trace($"Received {count} bytes."); 1789return NetEventSource.Log.IsEnabled() 1796if (NetEventSource.Log.IsEnabled()) Trace($"Received {count} bytes."); 1819if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1852if (NetEventSource.Log.IsEnabled()) Trace($"Received {bytesRead} bytes."); 1863if (NetEventSource.Log.IsEnabled()) Trace($"Copying {count} bytes to stream."); 2052if (NetEventSource.Log.IsEnabled()) 2118if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (6)
86if (HttpTelemetry.Log.IsEnabled()) 104if (HttpTelemetry.Log.IsEnabled()) 214if (NetEventSource.Log.IsEnabled()) connection.Trace($"Exception from asynchronous processing: {e}"); 231if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Idle {TimeSpan.FromMilliseconds(idleTicks)} > {pooledConnectionIdleTimeout}."); 242if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Lifetime {TimeSpan.FromMilliseconds(lifetimeTicks)} > {pooledConnectionLifetime}."); 249if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Keep-Alive timeout exceeded, unexpected data or EOF received.");
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
196if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Exception when subscribing to NetworkChange.NetworkAddressChanged: {e}"); 410if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Exception from {_proxy.GetType().Name}.GetProxy({request.RequestUri}): {ex}");
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (2)
80if (NetEventSource.Log.IsEnabled()) 89if (NetEventSource.Log.IsEnabled())
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (3)
23if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.UserName}]"); 40if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Removing key:[{key}]"); 56if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.UserName + ":" + mostSpecificMatch.Domain + ")")}");
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
18if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (5)
42if (NetEventSource.Log.IsEnabled()) 55if (HttpTelemetry.Log.IsEnabled()) 59if (NetEventSource.Log.IsEnabled()) 68if (NetEventSource.Log.IsEnabled()) 136if (NetEventSource.Log.IsEnabled())
System\Net\Http\StreamContent.cs (1)
45if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, content);
System\Net\Http\StreamToStreamCopy.cs (1)
105if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, e);
System.Net.HttpListener (54)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (5)
64if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 362if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Invoking callback"); 366if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "*** OFFLOADED the user callback ****"); 384if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "No callback to invoke"); 447if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Waiting for completion event {waitHandle}");
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
35Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\HttpListener.cs (6)
156if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"mapped uriPrefix: {uriPrefix} to registeredPrefix: {registeredPrefix}"); 166if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 222if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"uriPrefix: {uriPrefix}"); 240if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 302if (NetEventSource.Log.IsEnabled()) NetEventSource.Info("HttpListenerRequest::Close()"); 307if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Close {exception}");
System\Net\HttpListenerException.cs (4)
16if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}"); 21if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}"); 26if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}"); 34if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}");
System\Net\HttpListenerRequest.cs (5)
30if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "uri:" + uri + " setCookieHeader:" + setCookieHeader); 41if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "CookieParser returned cookie: " + cookie.ToString()); 186if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "_keepAlive=" + _keepAlive); 239if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_clientCertificate:{ClientCertificate}"); 246if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System\Net\HttpListenerRequestUriBuilder.cs (9)
90if (NetEventSource.Log.IsEnabled()) 115if (NetEventSource.Log.IsEnabled()) 163if (NetEventSource.Log.IsEnabled()) 252if (NetEventSource.Log.IsEnabled()) 267if (NetEventSource.Log.IsEnabled()) 273if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message)); 284if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, escapedCharacter)); 323if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message)); 328if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message));
System\Net\HttpListenerResponse.cs (8)
175if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"name={name}, value={value}"); 181if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"name={name}, value={value}"); 189if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"cookie: {cookie}"); 195if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Entering Set-Cookie: {Headers[HttpResponseHeader.SetCookie]}, Set-Cookie2: {Headers[HttpKnownHeaderNames.SetCookie2]}"); 209if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Now looking at index:{index} cookie: {cookie}"); 239if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Exiting Set-Cookie: {Headers[HttpResponseHeader.SetCookie]} Set-Cookie2: {Headers[HttpKnownHeaderNames.SetCookie2]}"); 244if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"url={url}"); 257if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"cookie: {cookie}");
System\Net\HttpRequestStream.cs (3)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset); 34if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset); 67if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "_closed:" + _closed);
System\Net\HttpResponseStream.cs (4)
47if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset); 61if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset); 68if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"asyncResult:{asyncResult}"); 81if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "_closed:" + _closed);
System\Net\Managed\HttpListener.Managed.cs (4)
51if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Start {exception}"); 85if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Stop {exception}"); 115if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Abort {exception}"); 141if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Dispose {exception}");
System\Net\ServiceNameStore.cs (3)
148if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.Format(SR.net_log_listener_spn_add, spn, uriPrefix)); 156else if (NetEventSource.Log.IsEnabled()) 178if (NetEventSource.Log.IsEnabled())
System.Net.Mail (12)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
35Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\Mail\MailMessage.cs (2)
41if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _message); 50if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _message);
System\Net\Mail\MailPriority.cs (2)
196if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _headers); 222if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _envelopeHeaders);
System\Net\Mail\SmtpClient.cs (4)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _transport); 362if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{nameof(pickupDirectory)}={pickupDirectory}"); 418if (NetEventSource.Log.IsEnabled()) 539if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, e);
System\Net\Mail\SmtpTransport.cs (1)
101if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _connection);
System.Net.NameResolution (25)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\Dns.cs (20)
36if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, name); 48if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"Invalid address '{address}'"); 54if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(address, $"{ipHostEntry} with {ipHostEntry.AddressList.Length} entries"); 79if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"Invalid address '{address}'"); 90if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(hostNameOrAddress, $"{ipHostEntry} with {ipHostEntry.AddressList.Length} entries"); 121if (NetEventSource.Log.IsEnabled()) 160if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"Invalid address '{address}'"); 168if (NetEventSource.Log.IsEnabled()) NetEventSource.Info((IPAddress)s, $"{ipHostEntry} with {ipHostEntry.AddressList.Length} entries"); 209if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"Invalid address '{address}'"); 220if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(hostNameOrAddress, addresses); 300if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(address, ipHostEntry); 313if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(address, ipHostEntry); 333if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(hostName, ex); 342if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(hostName, ipHostEntry); 375if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, ex); 380if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, ipHostEntry); 439if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(hostName, $"{hostName} DNS lookup failed with {errorCode}"); 489if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"{address} DNS lookup failed with {errorCode}"); 517if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(address, $"forward lookup for '{name}' failed with {errorCode}"); 576if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(hostName, $"Invalid address '{ipAddress}'");
System\Net\NameResolutionTelemetry.cs (3)
62public static bool AnyDiagnosticsEnabled() => !OperatingSystem.IsWasi() && (Log.IsEnabled() || NameResolutionMetrics.IsEnabled() || NameResolutionActivity.IsTracingEnabled()); 72if (IsEnabled()) 102if (IsEnabled())
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\NetEventSource.NetworkInformation.cs (1)
24Debug.Assert(IsEnabled());
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
214if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(ex);
System.Net.Primitives (18)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
41if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Match({UriPrefix} & {uri})"); 91if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Equals({this},{other}) returns {equals}");
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\CookieContainer.cs (2)
571if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"uri:{uri} headerName:{headerName} setCookieHeader:{setCookieHeader}"); 596if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"CookieParser returned cookie:{cookie}");
System\Net\CredentialCache.cs (11)
42if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.UserName}]"); 68if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{credential.Domain}],[{credential.UserName}]"); 85if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Short-circuiting because the dictionary is null."); 93if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Removing key:[{key}]"); 114if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Short-circuiting because the dictionary is null."); 122if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Removing key:[{key}]"); 134if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "CredentialCache::GetCredential short-circuiting because the dictionary is null."); 140if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.UserName + ":" + mostSpecificMatch.Domain + ")")}"); 153if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "CredentialCache::GetCredential short-circuiting because the dictionary is null."); 162if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {((match == null) ? "null" : "(" + match.UserName + ":" + match.Domain + ")")}"); 377if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Equals({this},{other}) returns {equals}");
System\Net\SocketException.cs (1)
59if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}");
System.Net.Quic (59)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\SafeHandleCache.cs (5)
55if (NetEventSource.Log.IsEnabled()) 85if (NetEventSource.Log.IsEnabled()) 121if (NetEventSource.Log.IsEnabled()) 135if (NetEventSource.Log.IsEnabled()) 148if (NetEventSource.Log.IsEnabled())
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (1)
34if (NetEventSource.Log.IsEnabled())
System\Net\Quic\Internal\MsQuicApi.cs (9)
86if (NetEventSource.Log.IsEnabled()) 104if (NetEventSource.Log.IsEnabled()) 122if (NetEventSource.Log.IsEnabled()) 136if (NetEventSource.Log.IsEnabled()) 154if (NetEventSource.Log.IsEnabled()) 167if (NetEventSource.Log.IsEnabled()) 180if (NetEventSource.Log.IsEnabled()) 187if (NetEventSource.Log.IsEnabled()) 204if (NetEventSource.Log.IsEnabled())
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
57if (NetEventSource.Log.IsEnabled()) 75if (NetEventSource.Log.IsEnabled())
System\Net\Quic\Internal\MsQuicSafeHandle.cs (4)
38if (NetEventSource.Log.IsEnabled()) 65if (NetEventSource.Log.IsEnabled()) 121if (NetEventSource.Log.IsEnabled()) 138if (NetEventSource.Log.IsEnabled())
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
35if (NetEventSource.Log.IsEnabled())
System\Net\Quic\QuicConnection.cs (14)
259if (NetEventSource.Log.IsEnabled()) 268if (NetEventSource.Log.IsEnabled()) 336if (NetEventSource.Log.IsEnabled()) 497if (NetEventSource.Log.IsEnabled()) 505if (NetEventSource.Log.IsEnabled()) 529if (NetEventSource.Log.IsEnabled()) 608if (NetEventSource.Log.IsEnabled()) 644if (NetEventSource.Log.IsEnabled()) 705if (NetEventSource.Log.IsEnabled()) 713if (NetEventSource.Log.IsEnabled()) 788if (NetEventSource.Log.IsEnabled()) 798if (NetEventSource.Log.IsEnabled()) 806if (NetEventSource.Log.IsEnabled()) 826if (NetEventSource.Log.IsEnabled())
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
166if (NetEventSource.Log.IsEnabled())
System\Net\Quic\QuicListener.cs (10)
63if (NetEventSource.Log.IsEnabled()) 258if (NetEventSource.Log.IsEnabled()) 271if (NetEventSource.Log.IsEnabled()) 307if (NetEventSource.Log.IsEnabled()) 328if (NetEventSource.Log.IsEnabled()) 339if (NetEventSource.Log.IsEnabled()) 376if (NetEventSource.Log.IsEnabled()) 386if (NetEventSource.Log.IsEnabled()) 394if (NetEventSource.Log.IsEnabled()) 413if (NetEventSource.Log.IsEnabled())
System\Net\Quic\QuicStream.cs (10)
282if (NetEventSource.Log.IsEnabled()) 343if (NetEventSource.Log.IsEnabled()) 372if (NetEventSource.Log.IsEnabled()) 475if (NetEventSource.Log.IsEnabled()) 521if (NetEventSource.Log.IsEnabled()) 680if (NetEventSource.Log.IsEnabled()) 690if (NetEventSource.Log.IsEnabled()) 698if (NetEventSource.Log.IsEnabled()) 720if (NetEventSource.Log.IsEnabled()) 760if (NetEventSource.Log.IsEnabled())
System.Net.Requests (65)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (8)
259if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 280if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "starting identity capture"); 288if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "starting capture"); 305if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_context:{_context}"); 310if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Skipping capture"); 323if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Completing synchronously"); 334if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_context(set):{_context != null} userToken:{userToken}"); 366if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Context set, calling callback.");
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (5)
64if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 362if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Invoking callback"); 366if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "*** OFFLOADED the user callback ****"); 384if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "No callback to invoke"); 447if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Waiting for completion event {waitHandle}");
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
35Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\CommandStream.cs (5)
47if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "closing control Stream"); 75if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 199if (NetEventSource.Log.IsEnabled()) 208if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Sending command {sendCommand}"); 661if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Received response: {responseString.Substring(0, completeLength - 2)}");
System\Net\FtpControlStream.cs (5)
240if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Command:{entry?.Command} Description:{response?.StatusDescription}"); 483if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 718if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "starting Connect()"); 732if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "starting Accept()"); 1179if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"CheckValid({response.StatusBuffer})");
System\Net\FtpDataStream.cs (2)
30if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 65if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"state = {closeState}");
System\Net\FtpWebRequest.cs (25)
487if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, uri); 524if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Method: {_methodInfo.Method}"); 586if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 593if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 607if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Method: {_methodInfo.Method}"); 670if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 702if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 714if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Method: {_methodInfo.Method}"); 755if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 766if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Method: {_methodInfo.Method}"); 794if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 834if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 884if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Request being submitted"); 1044if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 1049if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "aborting connection"); 1077if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Releasing connection: {_connection}"); 1093if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this); 1159if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"exp:{exception} completedRequest:{completedRequest}"); 1211if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"stream:{stream} conn:{connection} exp:{exception} completedRequest:{completedRequest}"); 1237if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Releasing connect:{connection}"); 1242if (NetEventSource.Log.IsEnabled()) NetEventSource.Associate(this, _connection); 1319if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"state:{stage}"); 1383if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Releasing connection: {connection}"); 1455if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, exception); 1677if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returns {_ftpWebResponse} with stream {_ftpWebResponse._responseStream}");
System\Net\TimerThread.cs (12)
311if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"TimerThreadTimer#{StartTime}"); 359if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"TimerThreadTimer#{StartTime} Cancel (success)"); 365if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"TimerThreadTimer#{StartTime} Cancel (failure)"); 377if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "TimerQueue tried to Fire a Sentinel."); 390if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"TimerThreadTimer#{StartTime}::Fire() Not firing ({StartTime} <= {nowMilliseconds} < {Expiration})"); 399if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"TimerThreadTimer#{StartTime}::Fire() Firing ({StartTime} <= {nowMilliseconds} >= " + Expiration + ")"); 427if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"exception in callback: {exception}"); 553if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Waiting for {waitDuration}ms"); 560if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, "Awoke, cause: Shutdown"); 565if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Awoke, cause {(waitResult == WaitHandle.WaitTimeout ? "Timeout" : "Prod")}"); 591if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, exception); 607if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, "Stop");
System.Net.Security (117)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
586if (NetEventSource.Log.IsEnabled())
src\libraries\Common\src\System\Net\DebugSafeHandle.cs (1)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (2)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\SafeHandleCache.cs (5)
55if (NetEventSource.Log.IsEnabled()) 85if (NetEventSource.Log.IsEnabled()) 121if (NetEventSource.Log.IsEnabled()) 135if (NetEventSource.Log.IsEnabled()) 148if (NetEventSource.Log.IsEnabled())
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (1)
34if (NetEventSource.Log.IsEnabled())
src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (1)
34if (NetEventSource.Log.IsEnabled() && !ExceptionCheck.IsFatal(e))
System\Net\CertificateValidationPal.cs (2)
60if (NetEventSource.Log.IsEnabled()) 80if (NetEventSource.Log.IsEnabled())
System\Net\CertificateValidationPal.Unix.cs (1)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.RemoteCertificate(result);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
228if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"package={clientOptions.Package}, spn={_spn}, requiredProtectionLevel={_protectionLevel}"); 240if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, SR.net_ntlm_not_possible_default_cred);
System\Net\NegotiateAuthenticationPal.Unix.cs (20)
52if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, gex); 75if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, gex); 146if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 194if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 200if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 205if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_ntlm_not_possible_default_cred); 210if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_nego_not_supported_empty_target_with_defaultcreds); 242if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 248if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 285if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.InitializeSecurityContext() returns statusCode:{statusCode}"); 300if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.AcceptSecurityContext() returns statusCode:{statusCode}"); 326if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"need continue _securityContext:{_securityContext}"); 511if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 565if (NetEventSource.Log.IsEnabled()) 632if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 642if (NetEventSource.Log.IsEnabled()) 666if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 704if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 719if (NetEventSource.Log.IsEnabled()) 738if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Security\NegotiateAuthentication.cs (8)
410if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_kerberos); 416if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_disabled); 422if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_cbt); 428if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spns); 438if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_whensupported); 443if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn_failed_always); 448if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn, clientSpn); 451if (NetEventSource.Log.IsEnabled())
System\Net\Security\NetSecurityTelemetry.cs (1)
47public static bool AnyTelemetryEnabled() => Log.IsEnabled() || s_activitySource.HasListeners();
System\Net\Security\SslSessionsCache.cs (8)
119if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 129if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 133if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Found a cached Handle = {credentials}"); 164if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 189if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 196if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() (locked retry) Found already cached Handle = {credentials}"); 202if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() Ignoring incoming handle = {creds} since found already cached Handle = {credentials}"); 245if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");
System\Net\Security\SslStream.cs (1)
223if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.SslStreamCtor(this, innerStream);
System\Net\Security\SslStream.IO.cs (13)
77if (NetSecurityTelemetry.Log.IsEnabled()) 128if (NetSecurityTelemetry.Log.IsEnabled()) 308if (NetEventSource.Log.IsEnabled()) 353if (NetEventSource.Log.IsEnabled()) 361if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 396if (NetEventSource.Log.IsEnabled()) 426if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 435TlsFrameHelper.ProcessingOptions options = NetEventSource.Log.IsEnabled() ? 448if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Failed to parse TLS hello."); 468if (NetEventSource.Log.IsEnabled()) 557if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate."); 882if (NetEventSource.Log.IsEnabled()) 1026if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (37)
189if (NetEventSource.Log.IsEnabled()) 204if (NetEventSource.Log.IsEnabled()) 243if (NetEventSource.Log.IsEnabled()) 272if (NetEventSource.Log.IsEnabled()) 324if (NetEventSource.Log.IsEnabled()) 333if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {_selectedClientCertificate}"); 338if (NetEventSource.Log.IsEnabled()) 357if (NetEventSource.Log.IsEnabled()) 364if (NetEventSource.Log.IsEnabled()) 369if (NetEventSource.Log.IsEnabled()) 384if (NetEventSource.Log.IsEnabled()) 394if (NetEventSource.Log.IsEnabled()) 424if (NetEventSource.Log.IsEnabled()) 446if (NetEventSource.Log.IsEnabled()) 450if (NetEventSource.Log.IsEnabled()) 480if (NetEventSource.Log.IsEnabled()) 489if (NetEventSource.Log.IsEnabled()) 527if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {selectedCert}"); 619if (NetEventSource.Log.IsEnabled()) 638if (NetEventSource.Log.IsEnabled()) 689if (NetEventSource.Log.IsEnabled()) 694if (NetEventSource.Log.IsEnabled()) 705if (NetEventSource.Log.IsEnabled()) 710if (NetEventSource.Log.IsEnabled()) 724if (NetEventSource.Log.IsEnabled()) 822if (NetEventSource.Log.IsEnabled()) 920if (NetEventSource.Log.IsEnabled()) 996if (NetEventSource.Log.IsEnabled()) 1007if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer.Span); 1017if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1026if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1068if (NetEventSource.Log.IsEnabled() && RemoteCertRequired) NetEventSource.Error(this, $"Remote certificate required, but no remote certificate received"); 1130if (NetEventSource.Log.IsEnabled()) 1186if (NetEventSource.Log.IsEnabled()) 1194if (NetEventSource.Log.IsEnabled()) 1213if (NetEventSource.Log.IsEnabled()) 1283if (!NetEventSource.Log.IsEnabled())
System\Net\Security\SslStreamCertificateContext.cs (2)
80if (!chainStatus && NetEventSource.Log.IsEnabled()) 93if (!chainStatus && NetEventSource.Log.IsEnabled())
System\Net\Security\SslStreamCertificateContext.Linux.cs (9)
145if (NetEventSource.Log.IsEnabled()) 156if (NetEventSource.Log.IsEnabled()) 174if (NetEventSource.Log.IsEnabled()) 183if (NetEventSource.Log.IsEnabled()) 217if (NetEventSource.Log.IsEnabled()) 258if (NetEventSource.Log.IsEnabled()) 344if (NetEventSource.Log.IsEnabled()) 367if (NetEventSource.Log.IsEnabled()) 378if (NetEventSource.Log.IsEnabled())
System.Net.Sockets (127)
src\libraries\Common\src\System\Net\DebugSafeHandleMinusOneIsInvalid.cs (2)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\Sockets\SafeSocketHandle.cs (3)
80if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"shouldClose={shouldClose}"); 101if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"abortive={abortive}, shouldClose ={shouldClose}"); 141if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle}");
System\Net\Sockets\SafeSocketHandle.Unix.cs (3)
246if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} Following 'non-abortive' branch."); 277if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle}, setsockopt():{errorCode}"); 313if (NetEventSource.Log.IsEnabled())
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (4)
45if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetLingerOption returned errorCode:{errorCode}"); 74if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}"); 91if (NetEventSource.Log.IsEnabled() && errorCode != SocketError.Success) NetEventSource.Info(this, $"SetLingerOption returned errorCode:{errorCode}"); 104if (NetEventSource.Log.IsEnabled() && errorCode != SocketError.Success) NetEventSource.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}");
System\Net\Sockets\Socket.cs (97)
84if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, addressFamily); 281if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetAvailable returns errorCode:{errorCode}"); 416if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 453if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_isConnected:{_isConnected}"); 791if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 795if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"localEP:{localEP}"); 851if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"DST:{remoteEP}"); 983if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 993if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 1012if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, backlog); 1049if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint}"); 1053if (SocketsTelemetry.Log.IsEnabled()) SocketsTelemetry.Log.AcceptStart(socketAddress); 1091if (NetEventSource.Log.IsEnabled()) NetEventSource.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint); 1150if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1161if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1165else if (SocketsTelemetry.Log.IsEnabled()) 1197if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1209if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1212else if (SocketsTelemetry.Log.IsEnabled()) 1218if (NetEventSource.Log.IsEnabled()) 1254if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1257else if (SocketsTelemetry.Log.IsEnabled()) 1335if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 1351if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1365else if (SocketsTelemetry.Log.IsEnabled()) 1374if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1447else if (SocketsTelemetry.Log.IsEnabled()) 1488else if (SocketsTelemetry.Log.IsEnabled()) 1540if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1551if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1554else if (SocketsTelemetry.Log.IsEnabled()) 1560if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, bytesTransferred); 1592if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1595else if (SocketsTelemetry.Log.IsEnabled()) 1638if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1649if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1652else if (SocketsTelemetry.Log.IsEnabled()) 1692else if (SocketsTelemetry.Log.IsEnabled()) 1711if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1779else if (SocketsTelemetry.Log.IsEnabled()) 1798if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1813if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1835if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 1842else if (SocketsTelemetry.Log.IsEnabled()) 1880if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1959if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 1966else if (SocketsTelemetry.Log.IsEnabled()) 2035if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 2039else if (SocketsTelemetry.Log.IsEnabled()) 2061if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"WindowsIoctl returns errorCode:{errorCode}"); 2081if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2090if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2095if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 2116if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2173if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}"); 2208if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2233if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2257if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2294if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}"); 2349if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Poll returns socketCount:{(int)errorCode}"); 2474if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}"); 2565if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 2665if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size}"); 2680if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size} returning AsyncResult:{asyncResult}"); 2810if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"how:{how}"); 2815if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Shutdown returns errorCode:{errorCode}"); 2855if (SocketsTelemetry.Log.IsEnabled()) SocketsTelemetry.Log.AcceptStart(_rightEndPoint!); 2906if (NetEventSource.Log.IsEnabled()) NetEventSource.ConnectedAsyncDns(this); 3367if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 3376if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"connection to:{endPointSnapshot}"); 3382if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint); 3387if (NetEventSource.Log.IsEnabled()) 3412if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.Dispose()"); 3425if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3437if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}"); 3443if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3450if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} shutdown():{errorCode}"); 3458if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} setsockopt():{errorCode}"); 3468if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} recv():{errorCode}"); 3480if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}"); 3505if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs() for non-owned handle"); 3528if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 3601if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "skipping the call"); 3608if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 3642if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetMulticastOption returns errorCode:{errorCode}"); 3656if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}"); 3671if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetLingerOption returns errorCode:{errorCode}"); 3687if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetLingerOption returns errorCode:{errorCode}"); 3703if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetMulticastOption returns errorCode:{errorCode}"); 3720if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}"); 3753if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetBlocking returns errorCode:{errorCode}"); 3762if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 3845if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "now connected"); 3891if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "!Disposed"); 3908if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException, memberName: callerName); 3924if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}"); 3931if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (6)
562(SocketsTelemetry.Log.IsEnabled() && (operation == SocketAsyncOperation.Connect || operation == SocketAsyncOperation.Accept))) 856if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred); 900if (NetEventSource.Log.IsEnabled() && bytesTransferred > 0) 918if (NetEventSource.Log.IsEnabled()) 939if (NetEventSource.Log.IsEnabled()) 1020if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_currentSocket?.SocketType, _completedOperation, bytesTransferred);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
333Debug.Assert(NetEventSource.Log.IsEnabled());
System\Net\Sockets\SocketPal.Unix.cs (3)
96if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, socket); 1153if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, socket); 2171if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, res);
System\Net\Sockets\TCPClient.cs (3)
33if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, family); 49if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 61if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, hostname);
System\Net\Sockets\TCPListener.cs (2)
25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 36if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localaddr);
System\Net\Sockets\UDPClient.cs (1)
222if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);
System.Net.WebSockets (91)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
35Debug.Assert(IsEnabled());
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
80Debug.Assert(IsEnabled()); 105Debug.Assert(IsEnabled());
System\Net\WebSockets\AsyncMutex.cs (2)
70if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Waiting to enter, queue length {-gate}"); 196if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Unblocking next waiter on exit, remaining queue length {-_gate}", nameof(Exit));
System\Net\WebSockets\ManagedWebSocket.cs (59)
153if (NetEventSource.Log.IsEnabled()) 177if (NetEventSource.Log.IsEnabled()) 185else if (NetEventSource.Log.IsEnabled()) 226if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 238if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"{nameof(_disposed)}={_disposed}"); 252if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 267if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(mutex); 272if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(mutex); 278if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(mutex); 283if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(mutex); 299if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 313if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 323if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 353if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 365if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 372if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 382if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 389if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 399if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 408if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 416if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 435if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 443if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 463if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 474if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length); 495if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 532if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 546if (NetEventSource.Log.IsEnabled()) 569if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 585if (NetEventSource.Log.IsEnabled()) 596if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 609if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 625if (NetEventSource.Log.IsEnabled()) 777if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateStarted(this, payloadBuffer.Length); 785if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 801if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Reading the next frame header"); 846if (NetEventSource.Log.IsEnabled()) 935if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numBytesRead}"); 981if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Data frame fully processed"); 994if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 999if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1031if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateCompleted(this); 1071if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1128if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1167if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1188if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Ping"); 1199if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Pong"); 1209if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Received Unsolicited Pong. Skipping."); 1269if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, errorMessage); 1414if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateStarted(this); 1438if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Waiting for a close frame"); 1455if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1467if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1496if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1501if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateCompleted(this); 1555if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1595if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numRead}"); 1742if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"_state={state}, _disposed={disposed}, _keepAlivePingState.Exception={keepAliveException}"); 1888if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(thisObj, e);
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (15)
30if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 42if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Cannot send keep-alive frame in {nameof(_state)}={_state}"); 55if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 66if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"KeepAlive already faulted, skipping... (exception: {_keepAlivePingState.Exception.Message})"); 76if (NetEventSource.Log.IsEnabled()) 107if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, e); 122if (NetEventSource.Log.IsEnabled()) NetEventSource.KeepAlivePingSent(this, pingPayload); 166if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"pongPayload={pongPayload}"); 170if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Not waiting for Pong. Skipping."); 176if (NetEventSource.Log.IsEnabled()) NetEventSource.PongResponseReceived(this, pongPayload); 183if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Expected payload {PingPayload}. Skipping."); 209if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceErrorMsg(this, exc); 213if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"WebSocket already disposed, skipping..."); 219if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"WebSocket is already closed, skipping..."); 229if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"WebSocket is already aborted, skipping...");
System\Net\WebSockets\NetEventSource.WebSockets.cs (12)
56Debug.Assert(Log.IsEnabled()); 63Debug.Assert(Log.IsEnabled()); 70Debug.Assert(Log.IsEnabled()); 93Debug.Assert(Log.IsEnabled()); 112Debug.Assert(Log.IsEnabled()); 119Debug.Assert(Log.IsEnabled()); 138Debug.Assert(Log.IsEnabled()); 145Debug.Assert(Log.IsEnabled()); 164Debug.Assert(Log.IsEnabled()); 171Debug.Assert(Log.IsEnabled()); 190Debug.Assert(Log.IsEnabled()); 197Debug.Assert(Log.IsEnabled());
System.Private.CoreLib (148)
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (5)
82if (log.IsEnabled()) 102if (log.IsEnabled()) 146if (log.IsEnabled()) 216if (log.IsEnabled()) 264if (log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (8)
67if (log.IsEnabled()) 85if (log.IsEnabled()) 111if (log.IsEnabled()) 171if (log.IsEnabled() && array.Length != 0) 190if (log.IsEnabled()) 210if (!log.IsEnabled()) 266log.IsEnabled()) 480if (log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (5)
87if (!_eventSource.IsEnabled()) 93Debug.Assert((s_counterGroupEnabledList == null && !_eventSource.IsEnabled()) 94|| (_eventSource.IsEnabled() && s_counterGroupEnabledList!.Contains(this)) 96|| (!_eventSource.IsEnabled() && !s_counterGroupEnabledList!.Contains(this))); 226if (_eventSource.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (22)
347if (!IsEnabled()) 839if (IsEnabled()) 853if (IsEnabled()) 870if (IsEnabled()) 891if (IsEnabled()) 905if (IsEnabled()) 922if (IsEnabled()) 943if (IsEnabled()) 961if (IsEnabled()) 984if (IsEnabled()) 1013if (IsEnabled()) 1034if (IsEnabled()) 1059if (IsEnabled()) 1081if (IsEnabled()) 1103if (IsEnabled()) 1124if (IsEnabled()) 1159if (IsEnabled()) 1371if (IsEnabled()) 1454/// method signature. Even if you use this for rare events, this call should be guarded by an <see cref="IsEnabled()"/> 1477/// method signature. Even if you use this for rare events, this call should be guarded by an <see cref="IsEnabled()"/> 1494/// particular method signature. Even if you use this for rare events, this call should be guarded by an <see cref="IsEnabled()"/> 1976if (IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\FrameworkEventSource.cs (2)
43if (IsEnabled()) 78if (IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (8)
88if (!this.IsEnabled()) 110if (!this.IsEnabled()) 145if (!this.IsEnabled()) 186if (!this.IsEnabled()) 228if (!this.IsEnabled()) 279if (!this.IsEnabled()) 336if (!this.IsEnabled()) 515if (!this.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (3)
231if (TplEventSource.Log.IsEnabled()) 356bool loggingOn = TplEventSource.Log.IsEnabled(); 489if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (2)
78if (TplEventSource.Log.IsEnabled()) 118if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (4)
180if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 199if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 227if (log.IsEnabled()) 257bool bEtwLogEnabled = innerEtwLog.IsEnabled();
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (2)
76if (TplEventSource.Log.IsEnabled()) 120if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
618if (areContentionEventsEnabled && NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
187if (NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (3)
142if (NativeRuntimeEventSource.Log.IsEnabled()) 218if (NativeRuntimeEventSource.Log.IsEnabled()) 288if (NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
115if (ThreadPool.EnableWorkerTracking && NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (3)
174if (NativeRuntimeEventSource.Log.IsEnabled()) 350if (NativeRuntimeEventSource.Log.IsEnabled()) 418if (NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (2)
40if (NativeRuntimeEventSource.Log.IsEnabled()) 75if (NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (3)
54if (NativeRuntimeEventSource.Log.IsEnabled()) 78if (NativeRuntimeEventSource.Log.IsEnabled()) 221if (NativeRuntimeEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (11)
528if (TplEventSource.Log.IsEnabled()) 650if (TplEventSource.Log.IsEnabled()) 666if (TplEventSource.Log.IsEnabled()) 767if (TplEventSource.Log.IsEnabled()) 789if (TplEventSource.Log.IsEnabled()) 884if (TplEventSource.Log.IsEnabled()) 906if (TplEventSource.Log.IsEnabled()) 1009if (TplEventSource.Log.IsEnabled()) 1031if (TplEventSource.Log.IsEnabled()) 1142if (TplEventSource.Log.IsEnabled()) 1164if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (25)
853if (TplEventSource.Log.IsEnabled()) 1174if (TplEventSource.Log.IsEnabled()) 1680if (TplEventSource.Log.IsEnabled() && (Options & (TaskCreationOptions)InternalTaskOptions.ContinuationTask) == 0) 2058if (TplEventSource.Log.IsEnabled()) 2074if (TplEventSource.Log.IsEnabled()) 2083if (TplEventSource.Log.IsEnabled()) 2309bool etwIsEnabled = log.IsEnabled(); 2983bool etwIsEnabled = log.IsEnabled(); 3312if (TplEventSource.Log.IsEnabled()) 3459bool etwIsEnabled = log.IsEnabled(); 3618if (TplEventSource.Log.IsEnabled()) 4510if (log.IsEnabled()) 5800if (TplEventSource.Log.IsEnabled()) 5842if (TplEventSource.Log.IsEnabled()) 6055if (TplEventSource.Log.IsEnabled()) 6082if (TplEventSource.Log.IsEnabled()) 6135if (TplEventSource.Log.IsEnabled()) 6398if (TplEventSource.Log.IsEnabled()) 6413if (TplEventSource.Log.IsEnabled()) 6468if (TplEventSource.Log.IsEnabled()) 6622if (TplEventSource.Log.IsEnabled()) 6657if (TplEventSource.Log.IsEnabled()) 7393if (TplEventSource.Log.IsEnabled()) 7503if (TplEventSource.Log.IsEnabled()) 7529if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (10)
279if (TplEventSource.Log.IsEnabled()) 314if (TplEventSource.Log.IsEnabled() && !continuationTask.IsCanceled) 404if (log.IsEnabled()) 422if (log.IsEnabled() && log.TasksSetActivityIds && c.m_continuationId != 0) 577if (log.IsEnabled()) 625if (!log.IsEnabled() && context == null) 632if (log.IsEnabled() && log.TasksSetActivityIds && m_continuationId != 0) 659if (log.IsEnabled() && log.TasksSetActivityIds && m_continuationId != 0) 780if (TplEventSource.Log.IsEnabled()) 815if (log.IsEnabled() && task != null)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (8)
1558if (TplEventSource.Log.IsEnabled()) 1567if (TplEventSource.Log.IsEnabled()) 1573if (TplEventSource.Log.IsEnabled()) 1628if (TplEventSource.Log.IsEnabled()) 1637if (TplEventSource.Log.IsEnabled()) 1643if (TplEventSource.Log.IsEnabled()) 2283if (TplEventSource.Log.IsEnabled()) 2299if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187if (TplEventSource.Log.IsEnabled()) 228if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (13)
197if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks)) 268if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Tasks)) 313if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks)) 361if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) 374if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.TaskStops)) 387if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) 405if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks)) 436if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation)) 464if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation)) 472if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation)) 480if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork)) 490if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork)) 547if (IsEnabled() && IsEnabled(EventLevel.Warning, Keywords.AsyncMethod))
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (4)
600if (!FrameworkEventSource.Log.IsEnabled()) 635if (_loggingEnabled && FrameworkEventSource.Log.IsEnabled()) 704if (_loggingEnabled && FrameworkEventSource.Log.IsEnabled()) 1132if (workQueue._loggingEnabled && FrameworkEventSource.Log.IsEnabled())
System.Security.Cryptography (94)
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (9)
44if (OpenSslX509ChainEventSource.Log.IsEnabled()) 67if (OpenSslX509ChainEventSource.Log.IsEnabled()) 126if (OpenSslX509ChainEventSource.Log.IsEnabled()) 135if (OpenSslX509ChainEventSource.Log.IsEnabled()) 145if (OpenSslX509ChainEventSource.Log.IsEnabled()) 178if (OpenSslX509ChainEventSource.Log.IsEnabled()) 215if (OpenSslX509ChainEventSource.Log.IsEnabled()) 227if (OpenSslX509ChainEventSource.Log.IsEnabled()) 238if (OpenSslX509ChainEventSource.Log.IsEnabled())
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (10)
49if (OpenSslX509ChainEventSource.Log.IsEnabled()) 97if (OpenSslX509ChainEventSource.Log.IsEnabled()) 124if (OpenSslX509ChainEventSource.Log.IsEnabled()) 146if (OpenSslX509ChainEventSource.Log.IsEnabled()) 154if (OpenSslX509ChainEventSource.Log.IsEnabled()) 162if (OpenSslX509ChainEventSource.Log.IsEnabled()) 170if (OpenSslX509ChainEventSource.Log.IsEnabled()) 178if (OpenSslX509ChainEventSource.Log.IsEnabled()) 186if (OpenSslX509ChainEventSource.Log.IsEnabled()) 194if (OpenSslX509ChainEventSource.Log.IsEnabled())
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (14)
51if (OpenSslX509ChainEventSource.Log.IsEnabled()) 64if (OpenSslX509ChainEventSource.Log.IsEnabled()) 79if (OpenSslX509ChainEventSource.Log.IsEnabled()) 90if (OpenSslX509ChainEventSource.Log.IsEnabled()) 103if (OpenSslX509ChainEventSource.Log.IsEnabled()) 118if (OpenSslX509ChainEventSource.Log.IsEnabled()) 140if (OpenSslX509ChainEventSource.Log.IsEnabled()) 172if (OpenSslX509ChainEventSource.Log.IsEnabled()) 193if (OpenSslX509ChainEventSource.Log.IsEnabled()) 242if (OpenSslX509ChainEventSource.Log.IsEnabled()) 254if (OpenSslX509ChainEventSource.Log.IsEnabled()) 317if (OpenSslX509ChainEventSource.Log.IsEnabled()) 351if (OpenSslX509ChainEventSource.Log.IsEnabled()) 359if (OpenSslX509ChainEventSource.Log.IsEnabled())
System\Security\Cryptography\X509Certificates\OpenSslX509ChainEventSource.cs (46)
96if (IsEnabled()) 108if (IsEnabled()) 117if (IsEnabled()) 126if (IsEnabled()) 144if (IsEnabled()) 165if (IsEnabled()) 174if (IsEnabled()) 195if (IsEnabled()) 207if (IsEnabled()) 216if (IsEnabled()) 239if (IsEnabled()) 248if (IsEnabled()) 260if (IsEnabled()) 272if (IsEnabled()) 284if (IsEnabled()) 296if (IsEnabled()) 308if (IsEnabled()) 317if (IsEnabled()) 338if (IsEnabled()) 347if (IsEnabled()) 368if (IsEnabled()) 380if (IsEnabled()) 389if (IsEnabled()) 410if (IsEnabled()) 422if (IsEnabled()) 435if (IsEnabled()) 447if (IsEnabled()) 459if (IsEnabled()) 471if (IsEnabled()) 483if (IsEnabled()) 495if (IsEnabled()) 507if (IsEnabled()) 519if (IsEnabled()) 531if (IsEnabled()) 543if (IsEnabled()) 552if (IsEnabled()) 573if (IsEnabled()) 582if (IsEnabled()) 600if (IsEnabled()) 659if (IsEnabled()) 668if (IsEnabled()) 686if (IsEnabled()) 708if (IsEnabled()) 720if (IsEnabled()) 729if (IsEnabled()) 750if (IsEnabled())
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (15)
245if (OpenSslX509ChainEventSource.Log.IsEnabled()) 344if (OpenSslX509ChainEventSource.Log.IsEnabled()) 365if (OpenSslX509ChainEventSource.Log.IsEnabled()) 390if (OpenSslX509ChainEventSource.Log.IsEnabled()) 417if (OpenSslX509ChainEventSource.Log.IsEnabled()) 429if (OpenSslX509ChainEventSource.Log.IsEnabled()) 446if (OpenSslX509ChainEventSource.Log.IsEnabled()) 454if (OpenSslX509ChainEventSource.Log.IsEnabled() && OpenSslX509ChainEventSource.Log.ShouldLogElementStatuses()) 625if (OpenSslX509ChainEventSource.Log.IsEnabled() && OpenSslX509ChainEventSource.Log.ShouldLogElementStatuses()) 753if (OpenSslX509ChainEventSource.Log.IsEnabled()) 818if (OpenSslX509ChainEventSource.Log.IsEnabled()) 1252else if (OpenSslX509ChainEventSource.Log.IsEnabled()) 1260if (OpenSslX509ChainEventSource.Log.IsEnabled()) 1269if (OpenSslX509ChainEventSource.Log.IsEnabled()) 1278if (OpenSslX509ChainEventSource.Log.IsEnabled())
System.Threading (1)
System\Threading\Barrier.cs (1)
671if (CdsSyncEtwBCLProvider.Log.IsEnabled())
System.Threading.Tasks.Dataflow (27)
Blocks\ActionBlock.cs (1)
117if (etwLog.IsEnabled())
Blocks\BatchBlock.cs (2)
92if (etwLog.IsEnabled()) 642if (etwLog.IsEnabled())
Blocks\BatchedJoinBlock.cs (2)
110if (etwLog.IsEnabled()) 359if (etwLog.IsEnabled())
Blocks\BroadcastBlock.cs (4)
99if (etwLog.IsEnabled()) 258if (etwLog.IsEnabled()) 835if (etwLog.IsEnabled()) 996if (etwLog.IsEnabled())
Blocks\BufferBlock.cs (2)
81if (etwLog.IsEnabled()) 259if (etwLog.IsEnabled())
Blocks\JoinBlock.cs (3)
103if (etwLog.IsEnabled()) 322if (etwLog.IsEnabled()) 1271if (etwLog.IsEnabled())
Blocks\TransformBlock.cs (1)
162if (etwLog.IsEnabled())
Blocks\TransformManyBlock.cs (1)
161if (etwLog.IsEnabled())
Blocks\WriteOnceBlock.cs (3)
99if (etwLog.IsEnabled()) 124if (etwLog.IsEnabled()) 199if (etwLog.IsEnabled())
Internal\SourceCore.cs (2)
757if (etwLog.IsEnabled()) 970if (etwLog.IsEnabled())
Internal\SpscTargetCore.cs (2)
174if (etwLog.IsEnabled()) 348if (etwLog.IsEnabled())
Internal\TargetCore.cs (2)
376if (etwLog.IsEnabled()) 798(etwLog = DataflowEtwProvider.Log).IsEnabled())
Internal\TargetRegistry.cs (2)
100if (etwLog.IsEnabled()) 161if (etwLog.IsEnabled())
System.Threading.Tasks.Parallel (10)
System\Threading\Tasks\Parallel.cs (10)
218if (ParallelEtwProvider.Log.IsEnabled()) 365if (ParallelEtwProvider.Log.IsEnabled()) 970if (ParallelEtwProvider.Log.IsEnabled()) 1008if (ParallelEtwProvider.Log.IsEnabled()) 1108if (ParallelEtwProvider.Log.IsEnabled()) 1143if (ParallelEtwProvider.Log.IsEnabled()) 2537if (ParallelEtwProvider.Log.IsEnabled()) 2599if (ParallelEtwProvider.Log.IsEnabled()) 2745if (ParallelEtwProvider.Log.IsEnabled()) 2793if (ParallelEtwProvider.Log.IsEnabled())
System.Transactions.Local (217)
System\Transactions\CommittableTransaction.cs (9)
40if (etwLog.IsEnabled()) 49if (etwLog.IsEnabled()) 70if (etwLog.IsEnabled()) 83if (etwLog.IsEnabled()) 114if (etwLog.IsEnabled()) 123if (etwLog.IsEnabled()) 150if (etwLog.IsEnabled()) 159if (etwLog.IsEnabled()) 183if (etwLog.IsEnabled())
System\Transactions\DependentTransaction.cs (2)
35if (etwLog.IsEnabled()) 62if (etwLog.IsEnabled())
System\Transactions\DurableEnlistmentState.cs (2)
97if (etwLog.IsEnabled()) 148if (etwLog.IsEnabled())
System\Transactions\Enlistment.cs (2)
497if (etwLog.IsEnabled()) 508if (etwLog.IsEnabled())
System\Transactions\PreparingEnlistment.cs (8)
17if (etwLog.IsEnabled()) 28if (etwLog.IsEnabled()) 37if (etwLog.IsEnabled()) 48if (etwLog.IsEnabled()) 57if (etwLog.IsEnabled()) 68if (etwLog.IsEnabled()) 77if (etwLog.IsEnabled()) 91if (etwLog.IsEnabled())
System\Transactions\SinglePhaseEnlistment.cs (12)
15if (etwLog.IsEnabled()) 26if (etwLog.IsEnabled()) 35if (etwLog.IsEnabled()) 46if (etwLog.IsEnabled()) 56if (etwLog.IsEnabled()) 67if (etwLog.IsEnabled()) 77if (etwLog.IsEnabled()) 84if (etwLog.IsEnabled()) 92if (etwLog.IsEnabled()) 102if (etwLog.IsEnabled()) 109if (etwLog.IsEnabled()) 117if (etwLog.IsEnabled())
System\Transactions\Transaction.cs (36)
156if (etwLog.IsEnabled()) 173if (etwLog.IsEnabled()) 184if (etwLog.IsEnabled()) 193if (etwLog.IsEnabled()) 206if (etwLog.IsEnabled()) 350if (etwLog.IsEnabled()) 365if (etwLog.IsEnabled()) 382if (etwLog.IsEnabled()) 389if (etwLog.IsEnabled()) 414if (etwLog.IsEnabled()) 450if (etwLog.IsEnabled()) 476if (etwLog.IsEnabled()) 506if (etwLog.IsEnabled()) 524if (etwLog.IsEnabled()) 554if (etwLog.IsEnabled()) 566if (etwLog.IsEnabled()) 580if (etwLog.IsEnabled()) 590if (etwLog.IsEnabled()) 604if (etwLog.IsEnabled()) 616if (etwLog.IsEnabled()) 641if (etwLog.IsEnabled()) 655if (etwLog.IsEnabled()) 680if (etwLog.IsEnabled()) 693if (etwLog.IsEnabled()) 707if (etwLog.IsEnabled()) 719if (etwLog.IsEnabled()) 735if (etwLog.IsEnabled()) 756if (etwLog.IsEnabled()) 823if (etwLog.IsEnabled()) 840if (etwLog.IsEnabled()) 896if (etwLog.IsEnabled()) 923if (etwLog.IsEnabled()) 937if (etwLog.IsEnabled()) 968if (etwLog.IsEnabled()) 981if (etwLog.IsEnabled()) 1007if (etwLog.IsEnabled())
System\Transactions\TransactionException.cs (7)
25if (etwLog.IsEnabled()) 45if (etwLog.IsEnabled()) 55if (etwLog.IsEnabled()) 128if (etwLog.IsEnabled()) 166if (etwLog.IsEnabled()) 243if (etwLog.IsEnabled()) 297if (etwLog.IsEnabled())
System\Transactions\TransactionInformation.cs (6)
22if (etwLog.IsEnabled()) 33if (etwLog.IsEnabled()) 47if (etwLog.IsEnabled()) 65if (etwLog.IsEnabled()) 81if (etwLog.IsEnabled()) 93if (etwLog.IsEnabled())
System\Transactions\TransactionInteropNonWindows.cs (16)
51if (etwLog.IsEnabled()) 63if (etwLog.IsEnabled()) 81if (etwLog.IsEnabled()) 100if (etwLog.IsEnabled()) 112if (etwLog.IsEnabled()) 125if (etwLog.IsEnabled()) 133if (etwLog.IsEnabled()) 151if (etwLog.IsEnabled()) 165if (etwLog.IsEnabled()) 178if (etwLog.IsEnabled()) 190if (etwLog.IsEnabled()) 198if (etwLog.IsEnabled()) 211if (etwLog.IsEnabled()) 218if (etwLog.IsEnabled()) 228if (etwLog.IsEnabled()) 235if (etwLog.IsEnabled())
System\Transactions\TransactionManager.cs (21)
152if (etwLog.IsEnabled()) 177if (etwLog.IsEnabled()) 187if (etwLog.IsEnabled()) 195if (etwLog.IsEnabled()) 218if (etwLog.IsEnabled()) 246if (etwLog.IsEnabled()) 254if (etwLog.IsEnabled()) 272if (etwLog.IsEnabled()) 297if (etwLog.IsEnabled()) 307if (etwLog.IsEnabled()) 314if (etwLog.IsEnabled()) 323if (etwLog.IsEnabled()) 331if (etwLog.IsEnabled()) 339if (etwLog.IsEnabled()) 354if (etwLog.IsEnabled()) 361if (etwLog.IsEnabled()) 371if (etwLog.IsEnabled()) 386if (etwLog.IsEnabled()) 392if (etwLog.IsEnabled()) 463if (etwLog.IsEnabled()) 494if (etwLog.IsEnabled())
System\Transactions\TransactionScope.cs (40)
59if (etwLog.IsEnabled()) 74if (etwLog.IsEnabled()) 92if (etwLog.IsEnabled()) 100if (etwLog.IsEnabled()) 118if (etwLog.IsEnabled()) 146if (etwLog.IsEnabled()) 164if (etwLog.IsEnabled()) 172if (etwLog.IsEnabled()) 190if (etwLog.IsEnabled()) 232if (etwLog.IsEnabled()) 250if (etwLog.IsEnabled()) 258if (etwLog.IsEnabled()) 270if (etwLog.IsEnabled()) 314if (etwLog.IsEnabled()) 332if (etwLog.IsEnabled()) 340if (etwLog.IsEnabled()) 357if (etwLog.IsEnabled()) 369if (etwLog.IsEnabled()) 386if (etwLog.IsEnabled()) 398if (etwLog.IsEnabled()) 411if (etwLog.IsEnabled()) 424if (etwLog.IsEnabled()) 489if (etwLog.IsEnabled()) 507if (etwLog.IsEnabled()) 513if (etwLog.IsEnabled()) 523if (etwLog.IsEnabled()) 595if (etwLog.IsEnabled()) 633if (etwLog.IsEnabled()) 640if (etwLog.IsEnabled()) 694if (etwLog.IsEnabled()) 745if (etwLog.IsEnabled()) 763if (etwLog.IsEnabled()) 770if (etwLog.IsEnabled()) 782if (etwLog.IsEnabled()) 831if (etwLog.IsEnabled()) 843if (etwLog.IsEnabled()) 855if (etwLog.IsEnabled()) 871if (etwLog.IsEnabled()) 882if (etwLog.IsEnabled()) 890if (etwLog.IsEnabled())
System\Transactions\TransactionState.cs (47)
301if (etwLog.IsEnabled()) 313if (etwLog.IsEnabled()) 325if (etwLog.IsEnabled()) 337if (etwLog.IsEnabled()) 349if (etwLog.IsEnabled()) 361if (etwLog.IsEnabled()) 373if (etwLog.IsEnabled()) 385if (etwLog.IsEnabled()) 397if (etwLog.IsEnabled()) 425if (etwLog.IsEnabled()) 577if (etwLog.IsEnabled()) 588if (etwLog.IsEnabled()) 723if (etwLog.IsEnabled()) 749if (etwLog.IsEnabled()) 775if (etwLog.IsEnabled()) 1002if (etwLog.IsEnabled()) 1029if (etwLog.IsEnabled()) 1064if (etwLog.IsEnabled()) 1245if (etwLog.IsEnabled()) 1402if (etwLog.IsEnabled()) 1533if (etwLog.IsEnabled()) 1596if (etwLog.IsEnabled()) 2069if (etwLog.IsEnabled()) 2084if (etwLog.IsEnabled()) 2189if (etwLog.IsEnabled()) 2200if (etwLog.IsEnabled()) 2311if (etwLog.IsEnabled()) 2340if (etwLog.IsEnabled()) 2370if (etwLog.IsEnabled()) 2431if (etwLog.IsEnabled()) 2947if (etwLog.IsEnabled()) 3091if (etwLog.IsEnabled()) 3161if (etwLog.IsEnabled()) 3271if (etwLog.IsEnabled()) 3284if (etwLog.IsEnabled()) 3331if (etwLog.IsEnabled()) 3420if (etwLog.IsEnabled()) 3447if (etwLog.IsEnabled()) 3603if (etwLog.IsEnabled()) 3849if (etwLog.IsEnabled()) 4051if (etwLog.IsEnabled()) 4144if (etwLog.IsEnabled()) 4188if (etwLog.IsEnabled()) 4257if (etwLog.IsEnabled()) 4272if (etwLog.IsEnabled()) 4618if (etwLog.IsEnabled()) 4654if (etwLog.IsEnabled())
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
267if (etwLog.IsEnabled()) 276if (etwLog.IsEnabled()) 358if (etwLog.IsEnabled()) 367if (etwLog.IsEnabled())
System\Transactions\VolatileEnlistmentState.cs (5)
142if (etwLog.IsEnabled()) 214if (etwLog.IsEnabled()) 367if (etwLog.IsEnabled()) 410if (etwLog.IsEnabled()) 444if (etwLog.IsEnabled())
Templates.Blazor.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Templates.Blazor.WebAssembly.Auth.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Templates.Blazor.WebAssembly.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Templates.Mvc.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())
Templates.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (27)
135if (Log.IsEnabled()) 151if (Log.IsEnabled()) 174if (Log.IsEnabled()) 239if (Log.IsEnabled()) 265if (Log.IsEnabled()) 274if (Log.IsEnabled()) 290if (Log.IsEnabled()) 295if (Log.IsEnabled()) 313if (Log.IsEnabled()) 337if (Log.IsEnabled()) 346if (Log.IsEnabled()) 376if (Log.IsEnabled()) 446if (Log.IsEnabled()) 458if (Log.IsEnabled()) 465if (Log.IsEnabled()) 477if (Log.IsEnabled()) 490if (Log.IsEnabled()) 505if (Log.IsEnabled()) 541if (Log.IsEnabled()) 620catch (Exception e) when (Log.IsEnabled()) 643catch (Exception ex) when (Log.IsEnabled()) 671catch (Exception ex) when (Log.IsEnabled()) 740if (Log.IsEnabled()) 755if (Log.IsEnabled()) 763catch (Exception ex) when (Log.IsEnabled()) 858if (Log.IsEnabled()) 865catch (Exception ex) when (Log.IsEnabled())
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
100if (Log.IsEnabled()) 252if (Log.IsEnabled()) 315if (Log.IsEnabled()) 353if (Log.IsEnabled())