1 instantiation of NetEventSource
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public 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)
38
public static readonly
NetEventSource
Log = new NetEventSource();
System\Net\WebSockets\AsyncMutex.cs (4)
70
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"Waiting to enter, queue length {-gate}");
196
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"Unblocking next waiter on exit, remaining queue length {-_gate}", nameof(Exit));
System\Net\WebSockets\ManagedWebSocket.cs (122)
153
if (
NetEventSource
.Log.IsEnabled())
155
NetEventSource
.Associate(this, stream);
156
NetEventSource
.Associate(this, _sendMutex);
157
NetEventSource
.Associate(this, _receiveMutex);
177
if (
NetEventSource
.Log.IsEnabled())
179
NetEventSource
.Associate(this, _keepAlivePingState);
181
NetEventSource
.Trace(this,
185
else if (
NetEventSource
.Log.IsEnabled())
187
NetEventSource
.Trace(this, $"Enabling Unsolicited Pong Keep-Alive strategy: heartbeat={heartBeatIntervalMs}ms");
226
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
238
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"{nameof(_disposed)}={_disposed}");
252
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"State transition from {state} to {_state}");
267
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(mutex);
272
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexExited(mutex);
278
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(mutex);
283
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexExited(mutex);
299
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
319
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
335
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
365
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
377
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
384
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
394
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
401
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
411
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
420
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
428
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
447
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
455
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
475
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"State transition from {state} to {_state}");
486
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length);
507
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(_sendMutex);
544
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
558
if (
NetEventSource
.Log.IsEnabled())
560
NetEventSource
.MutexExited(_sendMutex);
561
NetEventSource
.SendFrameAsyncCompleted(this);
581
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
597
if (
NetEventSource
.Log.IsEnabled())
599
NetEventSource
.MutexExited(_sendMutex);
600
NetEventSource
.SendFrameAsyncCompleted(this);
608
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(_sendMutex);
621
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
637
if (
NetEventSource
.Log.IsEnabled())
639
NetEventSource
.MutexExited(_sendMutex);
640
NetEventSource
.SendFrameAsyncCompleted(this);
789
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ReceiveAsyncPrivateStarted(this, payloadBuffer.Length);
797
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(_receiveMutex);
813
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Reading the next frame header");
858
if (
NetEventSource
.Log.IsEnabled())
860
NetEventSource
.Trace(this, $"Next frame opcode={header.Opcode}, fin={header.Fin}, compressed={header.Compressed}, payloadLength={header.PayloadLength}");
947
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"bytesRead={numBytesRead}");
993
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Data frame fully processed");
1006
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexExited(_receiveMutex);
1011
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
1043
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ReceiveAsyncPrivateCompleted(this);
1083
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"State transition from {state} to {_state}");
1140
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
1175
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
1196
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Processing incoming Ping");
1207
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Processing incoming Pong");
1217
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Received Unsolicited Pong. Skipping.");
1277
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, errorMessage);
1422
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.CloseAsyncPrivateStarted(this);
1446
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, "Waiting for a close frame");
1463
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexEntered(_receiveMutex);
1475
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.MutexExited(_receiveMutex);
1504
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, exc);
1509
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.CloseAsyncPrivateCompleted(this);
1563
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"State transition from {state} to {_state}");
1603
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"bytesRead={numRead}");
1750
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"_state={state}, _disposed={disposed}, _keepAlivePingState.Exception={keepAliveException}");
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (32)
30
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
42
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"Cannot send keep-alive frame in {nameof(_state)}={_state}");
55
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this);
66
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"KeepAlive already faulted, skipping... (exception: {_keepAlivePingState.Exception.Message})");
76
if (
NetEventSource
.Log.IsEnabled())
78
NetEventSource
.Trace(this, $"Keep-alive ping timed out after {_keepAlivePingState.TimeoutMs}ms. Expected pong with payload {_keepAlivePingState.PingPayload}");
107
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(this, e);
122
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.KeepAlivePingSent(this, pingPayload);
167
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceException(thisObj, e);
212
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"pongPayload={pongPayload}");
216
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"Not waiting for Pong. Skipping.");
222
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.PongResponseReceived(this, pongPayload);
229
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"Expected payload {PingPayload}. Skipping.");
255
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.TraceErrorMsg(this, exc);
259
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"WebSocket already disposed, skipping...");
265
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"WebSocket is already closed, skipping...");
275
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Trace(this, $"WebSocket is already aborted, skipping...");