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); 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); 435if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 443if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 463if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 474if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length); 495if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 532if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 546if (NetEventSource.Log.IsEnabled()) 548NetEventSource.MutexExited(_sendMutex); 549NetEventSource.SendFrameAsyncCompleted(this); 569if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 585if (NetEventSource.Log.IsEnabled()) 587NetEventSource.MutexExited(_sendMutex); 588NetEventSource.SendFrameAsyncCompleted(this); 596if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_sendMutex); 609if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 625if (NetEventSource.Log.IsEnabled()) 627NetEventSource.MutexExited(_sendMutex); 628NetEventSource.SendFrameAsyncCompleted(this); 777if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateStarted(this, payloadBuffer.Length); 785if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 801if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Reading the next frame header"); 846if (NetEventSource.Log.IsEnabled()) 848NetEventSource.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}"); 935if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numBytesRead}"); 981if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Data frame fully processed"); 994if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 999if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1031if (NetEventSource.Log.IsEnabled()) NetEventSource.ReceiveAsyncPrivateCompleted(this); 1071if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1128if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1167if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this); 1188if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Ping"); 1199if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Processing incoming Pong"); 1209if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Received Unsolicited Pong. Skipping."); 1269if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, errorMessage); 1414if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateStarted(this); 1438if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, "Waiting for a close frame"); 1455if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1467if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1496if (NetEventSource.Log.IsEnabled()) NetEventSource.TraceException(this, exc); 1501if (NetEventSource.Log.IsEnabled()) NetEventSource.CloseAsyncPrivateCompleted(this); 1555if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"State transition from {state} to {_state}"); 1595if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"bytesRead={numRead}"); 1742if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"_state={state}, _disposed={disposed}, _keepAlivePingState.Exception={keepAliveException}"); 1888if (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...");