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