45 references to Trace
System.Net.WebSockets (45)
System\Net\WebSockets\AsyncMutex.cs (2)
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 (30)
181
NetEventSource.
Trace
(this,
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}");
299
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this);
319
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this);
365
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this);
384
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this);
401
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this);
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}");
813
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this, "Reading the next frame header");
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");
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);
1446
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this, "Waiting for a close frame");
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 (11)
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})");
78
NetEventSource.
Trace
(this, $"Keep-alive ping timed out after {_keepAlivePingState.TimeoutMs}ms. Expected pong with payload {_keepAlivePingState.PingPayload}");
212
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this, $"pongPayload={pongPayload}");
216
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this, $"Not waiting for Pong. Skipping.");
229
if (NetEventSource.Log.IsEnabled()) NetEventSource.
Trace
(this, $"Expected payload {PingPayload}. Skipping.");
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...");
System\Net\WebSockets\NetEventSource.WebSockets.cs (2)
84
=>
Trace
(obj, $"{exception.GetType().Name}: {exception.Message}", memberName);
88
=>
Trace
(obj, exception.ToString(), memberName);