1 instantiation of NetEventSource
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
115 references to NetEventSource
System.Net.Quic (115)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly
NetEventSource
Log = new NetEventSource();
src\libraries\Common\src\System\Net\SafeHandleCache.cs (10)
55
if (
NetEventSource
.Log.IsEnabled())
57
NetEventSource
.Info(this, $"Found cached {handle}.");
85
if (
NetEventSource
.Log.IsEnabled())
87
NetEventSource
.Info(this, $"Discarding {handle} (preferring cached {cached}).");
121
if (
NetEventSource
.Log.IsEnabled())
123
NetEventSource
.Info(this, $"Current size: {_cache.Count}.");
135
if (
NetEventSource
.Log.IsEnabled())
137
NetEventSource
.Info(this, $"Evicting cached {handle}.");
148
if (
NetEventSource
.Log.IsEnabled())
150
NetEventSource
.Info(this, $"New size: {_cache.Count}.");
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
34
if (
NetEventSource
.Log.IsEnabled())
36
NetEventSource
.Error(null, $"Failed to open SSL key log file '{s_keyLogFile}': {ex}");
System\Net\Quic\Internal\MsQuicApi.cs (18)
87
if (
NetEventSource
.Log.IsEnabled())
89
NetEventSource
.Info(null, NotSupportedReason);
105
if (
NetEventSource
.Log.IsEnabled())
107
NetEventSource
.Info(null, $"Attempting to load MsQuic from {path}");
123
if (
NetEventSource
.Log.IsEnabled())
125
NetEventSource
.Info(null, NotSupportedReason);
137
if (
NetEventSource
.Log.IsEnabled())
139
NetEventSource
.Info(null, NotSupportedReason);
155
if (
NetEventSource
.Log.IsEnabled())
157
NetEventSource
.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_VERSION)} from MsQuic library: '{status}'.");
168
if (
NetEventSource
.Log.IsEnabled())
170
NetEventSource
.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_GIT_HASH)} from MsQuic library: '{status}'.");
181
if (
NetEventSource
.Log.IsEnabled())
183
NetEventSource
.Info(null, NotSupportedReason);
188
if (
NetEventSource
.Log.IsEnabled())
190
NetEventSource
.Info(null, $"Loaded MsQuic library '{MsQuicLibraryVersion}'.");
205
if (
NetEventSource
.Log.IsEnabled())
207
NetEventSource
.Info(null, NotSupportedReason);
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
57
if (
NetEventSource
.Log.IsEnabled())
59
NetEventSource
.Info(options, $"'{certificate}' not selected because it doesn't have a private key.");
75
if (
NetEventSource
.Log.IsEnabled())
77
NetEventSource
.Info(options, $"'{certificate}' not selected because it doesn't have a private key.");
System\Net\Quic\Internal\MsQuicSafeHandle.cs (8)
38
if (
NetEventSource
.Log.IsEnabled())
40
NetEventSource
.Info(this, $"{this} MsQuicSafeHandle created");
65
if (
NetEventSource
.Log.IsEnabled())
67
NetEventSource
.Info(this, $"{this} MsQuicSafeHandle released");
121
if (
NetEventSource
.Log.IsEnabled())
123
NetEventSource
.Info(this, $"{this} {_parent} ref count incremented");
138
if (
NetEventSource
.Log.IsEnabled())
140
NetEventSource
.Info(this, $"{this} {_parent} ref count decremented");
System\Net\Quic\Internal\MsQuicTlsSecret.cs (2)
35
if (
NetEventSource
.Log.IsEnabled())
37
NetEventSource
.Error(handle, $"Failed to set native memory for TLS secret: {ex}");
System\Net\Quic\QuicConnection.cs (28)
260
if (
NetEventSource
.Log.IsEnabled())
262
NetEventSource
.Info(this, $"{this} Signaling StreamCapacityIncreased with {bidirectionalIncrement} bidirectional increment (absolute value {_bidirectionalStreamCapacity}) and {unidirectionalIncrement} unidirectional increment (absolute value {_unidirectionalStreamCapacity}).");
269
if (
NetEventSource
.Log.IsEnabled())
271
NetEventSource
.Info(this, $"{this} {nameof(QuicConnectionOptions.StreamCapacityCallback)} failed with {ex}.");
337
if (
NetEventSource
.Log.IsEnabled())
339
NetEventSource
.Info(this, $"{this} New outbound connection.");
498
if (
NetEventSource
.Log.IsEnabled())
500
NetEventSource
.Info(this, $"{this} decremented stream count for {streamType} to {_unidirectionalStreamCapacity}.");
506
if (
NetEventSource
.Log.IsEnabled())
508
NetEventSource
.Info(this, $"{this} decremented stream count for {streamType} to {_bidirectionalStreamCapacity}.");
530
if (
NetEventSource
.Log.IsEnabled())
532
NetEventSource
.Info(this, $"{this} New outbound {type} stream {stream}.");
609
if (
NetEventSource
.Log.IsEnabled())
611
NetEventSource
.Info(this, $"{this} Closing connection, Error code = {errorCode}");
645
if (
NetEventSource
.Log.IsEnabled())
647
NetEventSource
.Info(this, $"{this} Connection connected {LocalEndPoint} -> {RemoteEndPoint} for {_negotiatedApplicationProtocol} protocol");
706
if (
NetEventSource
.Log.IsEnabled())
709
NetEventSource
.Info(this, $"{this} New inbound {type} stream {stream}, Id = {stream.Id}.");
714
if (
NetEventSource
.Log.IsEnabled())
716
NetEventSource
.Error(this, $"{this} Unable to enqueue incoming stream {stream}");
789
if (
NetEventSource
.Log.IsEnabled())
791
NetEventSource
.Error(null, $"Received event {connectionEvent->Type} for [conn][{(nint)connection:X11}] while connection is already disposed");
799
if (
NetEventSource
.Log.IsEnabled())
801
NetEventSource
.Info(instance, $"{instance} Received event {connectionEvent->Type} {connectionEvent->ToString()}");
807
if (
NetEventSource
.Log.IsEnabled())
809
NetEventSource
.Error(instance, $"{instance} Exception while processing event {connectionEvent->Type}: {ex}");
827
if (
NetEventSource
.Log.IsEnabled())
829
NetEventSource
.Info(this, $"{this} Disposing.");
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
166
if (
NetEventSource
.Log.IsEnabled())
168
NetEventSource
.Error(_connection, $"{_connection} ConnectionCertificateValidationComplete failed with {ThrowHelper.GetErrorMessageForStatus(status)}");
System\Net\Quic\QuicListener.cs (20)
65
if (
NetEventSource
.Log.IsEnabled())
67
NetEventSource
.Info(listener, $"{listener} Listener listens on {listener.LocalEndPoint}");
260
if (
NetEventSource
.Log.IsEnabled())
262
NetEventSource
.Info(connection, $"{connection} Connection handshake stopped by listener");
273
if (
NetEventSource
.Log.IsEnabled())
275
NetEventSource
.Error(connection, $"{connection} Connection handshake timed out: {oce}");
309
if (
NetEventSource
.Log.IsEnabled())
311
NetEventSource
.Error(connection, $"{connection} Connection handshake failed: {ex}");
330
if (
NetEventSource
.Log.IsEnabled())
332
NetEventSource
.Info(this, $"{this} Refusing connection from {MsQuicHelpers.QuicAddrToIPEndPoint(data.Info->RemoteAddress)} due to backlog limit");
341
if (
NetEventSource
.Log.IsEnabled())
343
NetEventSource
.Info(this, $"{this} New inbound connection {connection}.");
378
if (
NetEventSource
.Log.IsEnabled())
380
NetEventSource
.Error(null, $"Received event {listenerEvent->Type} for [list][{(nint)listener:X11}] while listener is already disposed");
388
if (
NetEventSource
.Log.IsEnabled())
390
NetEventSource
.Info(instance, $"{instance} Received event {listenerEvent->Type} {listenerEvent->ToString()}");
396
if (
NetEventSource
.Log.IsEnabled())
398
NetEventSource
.Error(instance, $"{instance} Exception while processing event {listenerEvent->Type}: {ex}");
415
if (
NetEventSource
.Log.IsEnabled())
417
NetEventSource
.Info(this, $"{this} Disposing.");
System\Net\Quic\QuicStream.cs (20)
282
if (
NetEventSource
.Log.IsEnabled())
284
NetEventSource
.Info(this, $"{this} Stream reading into memory of '{buffer.Length}' bytes.");
343
if (
NetEventSource
.Log.IsEnabled())
345
NetEventSource
.Info(this, $"{this} Stream read '{totalCopied}' bytes.");
372
if (
NetEventSource
.Log.IsEnabled())
374
NetEventSource
.Info(this, $"{this} Stream writing memory of '{buffer.Length}' bytes while {(completeWrites ? "completing" : "not completing")} writes.");
475
if (
NetEventSource
.Log.IsEnabled())
477
NetEventSource
.Info(this, $"{this} Aborting {abortDirection} with {errorCode}");
521
if (
NetEventSource
.Log.IsEnabled())
523
NetEventSource
.Info(this, $"{this} Completing writes.");
680
if (
NetEventSource
.Log.IsEnabled())
682
NetEventSource
.Error(null, $"Received event {streamEvent->Type} for [strm][{(nint)stream:X11}] while stream is already disposed");
690
if (
NetEventSource
.Log.IsEnabled())
692
NetEventSource
.Info(instance, $"{instance} Received event {streamEvent->Type} {streamEvent->ToString()}");
698
if (
NetEventSource
.Log.IsEnabled())
700
NetEventSource
.Error(instance, $"{instance} Exception while processing event {streamEvent->Type}: {ex}");
720
if (
NetEventSource
.Log.IsEnabled())
722
NetEventSource
.Info(this, $"{this} Disposing.");
760
if (
NetEventSource
.Log.IsEnabled())
762
NetEventSource
.Error(this, $"{this} StreamShutdown({flags}) failed: {ThrowHelper.GetErrorMessageForStatus(status)}.");