13 references to _activeConnections
Microsoft.DotNet.HotReload.Watch (13)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (13)
46
lock (
_activeConnections
)
48
connectionsToDispose = [..
_activeConnections
];
49
_activeConnections
.Clear();
124
lock (
_activeConnections
)
126
_activeConnections
.Add(connection);
203
lock (
_activeConnections
)
205
return [..
_activeConnections
.Where(b => b.ClientSocket.State == WebSocketState.Open)];
213
lock (
_activeConnections
)
216
for (var i = 0; i <
_activeConnections
.Count; i++)
218
var connection =
_activeConnections
[i];
221
_activeConnections
[j++] = connection;
230
_activeConnections
.RemoveRange(j,
_activeConnections
.Count - j);