1 instantiation of NetEventSource
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
159 references to NetEventSource
System.Net.WebSockets (159)
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 (124)
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); 319if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 335if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 365if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 377if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 384if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 394if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 401if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 411if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 420if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 428if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 447if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 455if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 475if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 486if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length); 507if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 544if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 558if (NetEventSource.Log.IsEnabled()) 560NetEventSource.MutexExited(_sendMutex); 561NetEventSource.SendFrameAsyncCompleted(this); 581if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 597if (NetEventSource.Log.IsEnabled()) 599NetEventSource.MutexExited(_sendMutex); 600NetEventSource.SendFrameAsyncCompleted(this); 608if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 621if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 637if (NetEventSource.Log.IsEnabled()) 639NetEventSource.MutexExited(_sendMutex); 640NetEventSource.SendFrameAsyncCompleted(this); 789if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateStarted(this, payloadBuffer.Length); 797if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 813if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Reading the next frame header"); 858if (NetEventSource.Log.IsEnabled()) 860NetEventSource.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}"); 947if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numBytesRead}"); 993if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Data frame fully processed"); 1006if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1011if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1043if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateCompleted(this); 1083if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1140if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1179if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1200if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Ping"); 1211if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Pong"); 1221if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Received Unsolicited Pong. Skipping."); 1281if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, errorMessage); 1426if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateStarted(this); 1450if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Waiting for a close frame"); 1467if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1479if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1508if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1513if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateCompleted(this); 1567if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1607if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numRead}"); 1754if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"_state={state}, _disposed={disposed}, _keepAlivePingState.Exception={keepAliveException}"); 1900if (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...");