3 instantiations of ManagedWebSocket
System.Net.WebSockets (3)
System\Net\WebSockets\WebSocket.cs (3)
153
return new
ManagedWebSocket
(stream, isServer, subProtocol, keepAliveInterval, WebSocketDefaults.DefaultKeepAliveTimeout);
167
return new
ManagedWebSocket
(stream, options);
212
return new
ManagedWebSocket
(innerStream, false, subProtocol, keepAliveInterval, WebSocketDefaults.DefaultKeepAliveTimeout);
7 references to ManagedWebSocket
System.Net.WebSockets (7)
System\Net\WebSockets\ManagedWebSocket.cs (5)
192
var wr = (WeakReference<
ManagedWebSocket
>)s!;
193
if (wr.TryGetTarget(out
ManagedWebSocket
? thisRef))
197
}, new WeakReference<
ManagedWebSocket
>(this), heartBeatIntervalMs, heartBeatIntervalMs);
613
using (cancellationToken.Register(static s => ((
ManagedWebSocket
)s!).Abort(), this))
794
registration = cancellationToken.Register(static s => ((
ManagedWebSocket
)s!).Abort(), this);
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (2)
176
private readonly
ManagedWebSocket
_parent;
189
public KeepAlivePingState(TimeSpan keepAliveInterval, TimeSpan keepAliveTimeout,
ManagedWebSocket
parent)