1 instantiation of NetEventSource
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
165 references to NetEventSource
System.Net.WebSockets (165)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
System\Net\WebSockets\AsyncMutex.cs (4)
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 (130)
153if (NetEventSource.Log.IsEnabled()) 155NetEventSource.Associate(this, stream); 156NetEventSource.Associate(this, _sendMutex); 157NetEventSource.Associate(this, _receiveMutex); 177if (NetEventSource.Log.IsEnabled()) 179NetEventSource.Associate(this, _keepAlivePingState); 181NetEventSource.Trace(this, 185else if (NetEventSource.Log.IsEnabled()) 187NetEventSource.Trace(this, $"Enabling Unsolicited Pong Keep-Alive strategy: heartbeat={heartBeatIntervalMs}ms"); 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); 441if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 449if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 469if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 480if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length); 501if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 539if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 553if (NetEventSource.Log.IsEnabled()) 555NetEventSource.MutexExited(_sendMutex); 556NetEventSource.SendFrameAsyncCompleted(this); 576if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 592if (NetEventSource.Log.IsEnabled()) 594NetEventSource.MutexExited(_sendMutex); 595NetEventSource.SendFrameAsyncCompleted(this); 614if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 618if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 628if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 644if (NetEventSource.Log.IsEnabled()) 646NetEventSource.MutexExited(_sendMutex); 647NetEventSource.SendFrameAsyncCompleted(this); 798if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateStarted(this, payloadBuffer.Length); 806if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 822if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Reading the next frame header"); 867if (NetEventSource.Log.IsEnabled()) 869NetEventSource.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}"); 955if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numBytesRead}"); 1001if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Data frame fully processed"); 1014if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1019if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1051if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateCompleted(this); 1091if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1156if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1161if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1189if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1201if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1222if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Ping"); 1233if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Pong"); 1243if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Received Unsolicited Pong. Skipping."); 1305if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, errorMessage); 1455if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateStarted(this); 1479if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Waiting for a close frame"); 1496if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1508if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1543if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1548if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateCompleted(this); 1602if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1635if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numRead}"); 1781if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"_state={state}, _disposed={disposed}, _keepAlivePingState.Exception={keepAliveException}"); 1927if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(thisObj, e);
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (30)
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()) 78NetEventSource.Trace(this, $"Keep-alive ping timed out after {_keepAlivePingState.TimeoutMs}ms. Expected pong with payload {_keepAlivePingState.PingPayload}"); 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...");