1 instantiation of NetEventSource
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public 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)
38public static readonly NetEventSource Log = new NetEventSource();
src\libraries\Common\src\System\Net\SafeHandleCache.cs (10)
55if (NetEventSource.Log.IsEnabled()) 57NetEventSource.Info(this, $"Found cached {handle}."); 85if (NetEventSource.Log.IsEnabled()) 87NetEventSource.Info(this, $"Discarding {handle} (preferring cached {cached})."); 121if (NetEventSource.Log.IsEnabled()) 123NetEventSource.Info(this, $"Current size: {_cache.Count}."); 135if (NetEventSource.Log.IsEnabled()) 137NetEventSource.Info(this, $"Evicting cached {handle}."); 148if (NetEventSource.Log.IsEnabled()) 150NetEventSource.Info(this, $"New size: {_cache.Count}.");
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
34if (NetEventSource.Log.IsEnabled()) 36NetEventSource.Error(null, $"Failed to open SSL key log file '{s_keyLogFile}': {ex}");
System\Net\Quic\Internal\MsQuicApi.cs (18)
85if (NetEventSource.Log.IsEnabled()) 87NetEventSource.Info(null, NotSupportedReason); 103if (NetEventSource.Log.IsEnabled()) 105NetEventSource.Info(null, $"Attempting to load MsQuic from {path}"); 121if (NetEventSource.Log.IsEnabled()) 123NetEventSource.Info(null, NotSupportedReason); 135if (NetEventSource.Log.IsEnabled()) 137NetEventSource.Info(null, NotSupportedReason); 153if (NetEventSource.Log.IsEnabled()) 155NetEventSource.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_VERSION)} from MsQuic library: '{status}'."); 166if (NetEventSource.Log.IsEnabled()) 168NetEventSource.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_GIT_HASH)} from MsQuic library: '{status}'."); 179if (NetEventSource.Log.IsEnabled()) 181NetEventSource.Info(null, NotSupportedReason); 186if (NetEventSource.Log.IsEnabled()) 188NetEventSource.Info(null, $"Loaded MsQuic library '{MsQuicLibraryVersion}'."); 203if (NetEventSource.Log.IsEnabled()) 205NetEventSource.Info(null, NotSupportedReason);
System\Net\Quic\Internal\MsQuicConfiguration.cs (4)
54if (NetEventSource.Log.IsEnabled()) 56NetEventSource.Info(options, $"'{certificate}' not selected because it doesn't have a private key."); 71if (NetEventSource.Log.IsEnabled()) 73NetEventSource.Info(options, $"'{certificate}' not selected because it doesn't have a private key.");
System\Net\Quic\Internal\MsQuicSafeHandle.cs (8)
38if (NetEventSource.Log.IsEnabled()) 40NetEventSource.Info(this, $"{this} MsQuicSafeHandle created"); 65if (NetEventSource.Log.IsEnabled()) 67NetEventSource.Info(this, $"{this} MsQuicSafeHandle released"); 121if (NetEventSource.Log.IsEnabled()) 123NetEventSource.Info(this, $"{this} {_parent} ref count incremented"); 138if (NetEventSource.Log.IsEnabled()) 140NetEventSource.Info(this, $"{this} {_parent} ref count decremented");
System\Net\Quic\Internal\MsQuicTlsSecret.cs (2)
35if (NetEventSource.Log.IsEnabled()) 37NetEventSource.Error(handle, $"Failed to set native memory for TLS secret: {ex}");
System\Net\Quic\QuicConnection.cs (28)
259if (NetEventSource.Log.IsEnabled()) 261NetEventSource.Info(this, $"{this} Signaling StreamCapacityIncreased with {bidirectionalIncrement} bidirectional increment (absolute value {_bidirectionalStreamCapacity}) and {unidirectionalIncrement} unidirectional increment (absolute value {_unidirectionalStreamCapacity})."); 268if (NetEventSource.Log.IsEnabled()) 270NetEventSource.Info(this, $"{this} {nameof(QuicConnectionOptions.StreamCapacityCallback)} failed with {ex}."); 336if (NetEventSource.Log.IsEnabled()) 338NetEventSource.Info(this, $"{this} New outbound connection."); 500if (NetEventSource.Log.IsEnabled()) 502NetEventSource.Info(this, $"{this} decremented stream count for {streamType} to {_unidirectionalStreamCapacity}."); 508if (NetEventSource.Log.IsEnabled()) 510NetEventSource.Info(this, $"{this} decremented stream count for {streamType} to {_bidirectionalStreamCapacity}."); 532if (NetEventSource.Log.IsEnabled()) 534NetEventSource.Info(this, $"{this} New outbound {type} stream {stream}."); 611if (NetEventSource.Log.IsEnabled()) 613NetEventSource.Info(this, $"{this} Closing connection, Error code = {errorCode}"); 650if (NetEventSource.Log.IsEnabled()) 652NetEventSource.Info(this, $"{this} Connection connected {LocalEndPoint} -> {RemoteEndPoint} for {_negotiatedApplicationProtocol} protocol"); 699if (NetEventSource.Log.IsEnabled()) 702NetEventSource.Info(this, $"{this} New inbound {type} stream {stream}, Id = {stream.Id}."); 707if (NetEventSource.Log.IsEnabled()) 709NetEventSource.Error(this, $"{this} Unable to enqueue incoming stream {stream}"); 782if (NetEventSource.Log.IsEnabled()) 784NetEventSource.Error(null, $"Received event {connectionEvent->Type} for [conn][{(nint)connection:X11}] while connection is already disposed"); 792if (NetEventSource.Log.IsEnabled()) 794NetEventSource.Info(instance, $"{instance} Received event {connectionEvent->Type} {connectionEvent->ToString()}"); 800if (NetEventSource.Log.IsEnabled()) 802NetEventSource.Error(instance, $"{instance} Exception while processing event {connectionEvent->Type}: {ex}"); 820if (NetEventSource.Log.IsEnabled()) 822NetEventSource.Info(this, $"{this} Disposing.");
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
166if (NetEventSource.Log.IsEnabled()) 168NetEventSource.Error(_connection, $"{_connection} ConnectionCertificateValidationComplete failed with {ThrowHelper.GetErrorMessageForStatus(status)}");
System\Net\Quic\QuicListener.cs (20)
63if (NetEventSource.Log.IsEnabled()) 65NetEventSource.Info(listener, $"{listener} Listener listens on {listener.LocalEndPoint}"); 258if (NetEventSource.Log.IsEnabled()) 260NetEventSource.Info(connection, $"{connection} Connection handshake stopped by listener"); 271if (NetEventSource.Log.IsEnabled()) 273NetEventSource.Error(connection, $"{connection} Connection handshake timed out: {oce}"); 307if (NetEventSource.Log.IsEnabled()) 309NetEventSource.Error(connection, $"{connection} Connection handshake failed: {ex}"); 328if (NetEventSource.Log.IsEnabled()) 330NetEventSource.Info(this, $"{this} Refusing connection from {MsQuicHelpers.QuicAddrToIPEndPoint(data.Info->RemoteAddress)} due to backlog limit"); 339if (NetEventSource.Log.IsEnabled()) 341NetEventSource.Info(this, $"{this} New inbound connection {connection}."); 376if (NetEventSource.Log.IsEnabled()) 378NetEventSource.Error(null, $"Received event {listenerEvent->Type} for [list][{(nint)listener:X11}] while listener is already disposed"); 386if (NetEventSource.Log.IsEnabled()) 388NetEventSource.Info(instance, $"{instance} Received event {listenerEvent->Type} {listenerEvent->ToString()}"); 394if (NetEventSource.Log.IsEnabled()) 396NetEventSource.Error(instance, $"{instance} Exception while processing event {listenerEvent->Type}: {ex}"); 413if (NetEventSource.Log.IsEnabled()) 415NetEventSource.Info(this, $"{this} Disposing.");
System\Net\Quic\QuicStream.cs (20)
282if (NetEventSource.Log.IsEnabled()) 284NetEventSource.Info(this, $"{this} Stream reading into memory of '{buffer.Length}' bytes."); 343if (NetEventSource.Log.IsEnabled()) 345NetEventSource.Info(this, $"{this} Stream read '{totalCopied}' bytes."); 372if (NetEventSource.Log.IsEnabled()) 374NetEventSource.Info(this, $"{this} Stream writing memory of '{buffer.Length}' bytes while {(completeWrites ? "completing" : "not completing")} writes."); 475if (NetEventSource.Log.IsEnabled()) 477NetEventSource.Info(this, $"{this} Aborting {abortDirection} with {errorCode}"); 521if (NetEventSource.Log.IsEnabled()) 523NetEventSource.Info(this, $"{this} Completing writes."); 680if (NetEventSource.Log.IsEnabled()) 682NetEventSource.Error(null, $"Received event {streamEvent->Type} for [strm][{(nint)stream:X11}] while stream is already disposed"); 690if (NetEventSource.Log.IsEnabled()) 692NetEventSource.Info(instance, $"{instance} Received event {streamEvent->Type} {streamEvent->ToString()}"); 698if (NetEventSource.Log.IsEnabled()) 700NetEventSource.Error(instance, $"{instance} Exception while processing event {streamEvent->Type}: {ex}"); 720if (NetEventSource.Log.IsEnabled()) 722NetEventSource.Info(this, $"{this} Disposing."); 760if (NetEventSource.Log.IsEnabled()) 762NetEventSource.Error(this, $"{this} StreamShutdown({flags}) failed: {ThrowHelper.GetErrorMessageForStatus(status)}.");