1 instantiation of BrowserConnection
Microsoft.DotNet.HotReload.Watch (1)
AbstractBrowserRefreshServer.cs (1)
112
var connection = new
BrowserConnection
(clientSocket, sharedSecret, loggerFactory);
15 references to BrowserConnection
Microsoft.DotNet.HotReload.Watch (15)
AbstractBrowserRefreshServer.cs (10)
34
private readonly List<
BrowserConnection
> _activeConnections = [];
44
BrowserConnection
[] connectionsToDispose;
51
foreach (
var
connection in connectionsToDispose)
108
protected
BrowserConnection
OnBrowserConnected(WebSocket clientSocket, string? subProtocol)
112
var
connection = new BrowserConnection(clientSocket, sharedSecret, loggerFactory);
180
private IReadOnlyCollection<
BrowserConnection
> GetOpenBrowserConnections()
190
List<
BrowserConnection
>? lazyConnectionsToDispose = null;
197
var
connection = _activeConnections[i];
214
foreach (
var
connection in lazyConnectionsToDispose)
253
foreach (
var
connection in openConnections)
BrowserConnection.cs (2)
17
public const string ServerLogComponentName = $"{nameof(
BrowserConnection
)}:Server";
18
public const string AgentLogComponentName = $"{nameof(
BrowserConnection
)}:Agent";
BrowserRefreshServer.cs (1)
146
var
connection = OnBrowserConnected(clientSocket, subProtocol);
UI\IReporter.cs (2)
177
.Add(
BrowserConnection
.AgentLogComponentName, Emoji.Agent)
178
.Add(
BrowserConnection
.ServerLogComponentName, Emoji.Browser)