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
();
107 references to NetEventSource
System.Net.Quic (107)
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 (16)
83
if (
NetEventSource
.Log.IsEnabled())
85
NetEventSource
.Info(null, NotSupportedReason);
106
if (
NetEventSource
.Log.IsEnabled())
108
NetEventSource
.Info(null, NotSupportedReason);
120
if (
NetEventSource
.Log.IsEnabled())
122
NetEventSource
.Info(null, NotSupportedReason);
138
if (
NetEventSource
.Log.IsEnabled())
140
NetEventSource
.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_VERSION)} from MsQuic library: '{status}'.");
151
if (
NetEventSource
.Log.IsEnabled())
153
NetEventSource
.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_GIT_HASH)} from MsQuic library: '{status}'.");
164
if (
NetEventSource
.Log.IsEnabled())
166
NetEventSource
.Info(null, NotSupportedReason);
171
if (
NetEventSource
.Log.IsEnabled())
173
NetEventSource
.Info(null, $"Loaded MsQuic library '{MsQuicLibraryVersion}'.");
188
if (
NetEventSource
.Log.IsEnabled())
190
NetEventSource
.Info(null, NotSupportedReason);
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
54
if (
NetEventSource
.Log.IsEnabled())
56
NetEventSource
.Info(options, $"'{certificate}' not selected because it doesn't have a private key.");
71
if (
NetEventSource
.Log.IsEnabled())
73
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 (20)
260
if (
NetEventSource
.Log.IsEnabled())
262
NetEventSource
.Info(this, $"{this} New outbound connection.");
425
if (
NetEventSource
.Log.IsEnabled())
427
NetEventSource
.Info(this, $"{this} New outbound {type} stream {stream}.");
508
if (
NetEventSource
.Log.IsEnabled())
510
NetEventSource
.Info(this, $"{this} Closing connection, Error code = {errorCode}");
538
if (
NetEventSource
.Log.IsEnabled())
540
NetEventSource
.Info(this, $"{this} Connection connected {LocalEndPoint} -> {RemoteEndPoint} for {_negotiatedApplicationProtocol} protocol");
587
if (
NetEventSource
.Log.IsEnabled())
590
NetEventSource
.Info(this, $"{this} New inbound {type} stream {stream}, Id = {stream.Id}.");
595
if (
NetEventSource
.Log.IsEnabled())
597
NetEventSource
.Error(this, $"{this} Unable to enqueue incoming stream {stream}");
652
if (
NetEventSource
.Log.IsEnabled())
654
NetEventSource
.Error(null, $"Received event {connectionEvent->Type} for [conn][{(nint)connection:X11}] while connection is already disposed");
662
if (
NetEventSource
.Log.IsEnabled())
664
NetEventSource
.Info(instance, $"{instance} Received event {connectionEvent->Type} {connectionEvent->ToString()}");
670
if (
NetEventSource
.Log.IsEnabled())
672
NetEventSource
.Error(instance, $"{instance} Exception while processing event {connectionEvent->Type}: {ex}");
690
if (
NetEventSource
.Log.IsEnabled())
692
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 (22)
59
if (
NetEventSource
.Log.IsEnabled())
61
NetEventSource
.Info(listener, $"{listener} Listener listens on {listener.LocalEndPoint}");
251
if (
NetEventSource
.Log.IsEnabled())
253
NetEventSource
.Info(connection, $"{connection} Connection closed by remote peer");
276
if (
NetEventSource
.Log.IsEnabled())
278
NetEventSource
.Info(connection, $"{connection} Connection handshake stopped by listener");
289
if (
NetEventSource
.Log.IsEnabled())
291
NetEventSource
.Error(connection, $"{connection} Connection handshake timed out: {oce}");
307
if (
NetEventSource
.Log.IsEnabled())
309
NetEventSource
.Error(connection, $"{connection} Connection handshake failed: {ex}");
328
if (
NetEventSource
.Log.IsEnabled())
330
NetEventSource
.Info(this, $"{this} Refusing connection from {MsQuicHelpers.QuicAddrToIPEndPoint(data.Info->RemoteAddress)} due to backlog limit");
339
if (
NetEventSource
.Log.IsEnabled())
341
NetEventSource
.Info(this, $"{this} New inbound connection {connection}.");
376
if (
NetEventSource
.Log.IsEnabled())
378
NetEventSource
.Error(null, $"Received event {listenerEvent->Type} for [list][{(nint)listener:X11}] while listener is already disposed");
386
if (
NetEventSource
.Log.IsEnabled())
388
NetEventSource
.Info(instance, $"{instance} Received event {listenerEvent->Type} {listenerEvent->ToString()}");
394
if (
NetEventSource
.Log.IsEnabled())
396
NetEventSource
.Error(instance, $"{instance} Exception while processing event {listenerEvent->Type}: {ex}");
413
if (
NetEventSource
.Log.IsEnabled())
415
NetEventSource
.Info(this, $"{this} Disposing.");
System\Net\Quic\QuicStream.cs (20)
274
if (
NetEventSource
.Log.IsEnabled())
276
NetEventSource
.Info(this, $"{this} Stream reading into memory of '{buffer.Length}' bytes.");
335
if (
NetEventSource
.Log.IsEnabled())
337
NetEventSource
.Info(this, $"{this} Stream read '{totalCopied}' bytes.");
361
if (
NetEventSource
.Log.IsEnabled())
363
NetEventSource
.Info(this, $"{this} Stream writing memory of '{buffer.Length}' bytes while {(completeWrites ? "completing" : "not completing")} writes.");
466
if (
NetEventSource
.Log.IsEnabled())
468
NetEventSource
.Info(this, $"{this} Aborting {abortDirection} with {errorCode}");
512
if (
NetEventSource
.Log.IsEnabled())
514
NetEventSource
.Info(this, $"{this} Completing writes.");
666
if (
NetEventSource
.Log.IsEnabled())
668
NetEventSource
.Error(null, $"Received event {streamEvent->Type} for [strm][{(nint)stream:X11}] while stream is already disposed");
676
if (
NetEventSource
.Log.IsEnabled())
678
NetEventSource
.Info(instance, $"{instance} Received event {streamEvent->Type} {streamEvent->ToString()}");
684
if (
NetEventSource
.Log.IsEnabled())
686
NetEventSource
.Error(instance, $"{instance} Exception while processing event {streamEvent->Type}: {ex}");
706
if (
NetEventSource
.Log.IsEnabled())
708
NetEventSource
.Info(this, $"{this} Disposing.");
746
if (
NetEventSource
.Log.IsEnabled())
748
NetEventSource
.Error(this, $"{this} StreamShutdown({flags}) failed: {ThrowHelper.GetErrorMessageForStatus(status)}.");