1 instantiation of ServerInstance
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerFixture.cs (1)
156var instance = new ServerInstance(appName, key, ProxyUrl, instanceKey =>
19 references to ServerInstance
Microsoft.AspNetCore.Components.Testing (19)
Infrastructure\PlaywrightExtensions.cs (4)
41/// so the YARP proxy routes requests to the correct <see cref="ServerInstance"/>. 47this BrowserNewContextOptions options, ServerInstance server) 102ServerInstance server, 128this IBrowserContext context, ServerInstance server, string sessionId)
Infrastructure\RemoteLock.cs (2)
18private readonly ServerInstance _server; 22internal RemoteLock(ServerInstance server, string key)
Infrastructure\ServerFixture.cs (9)
52private readonly ConcurrentDictionary<string, ServerInstance> _instances = new(); 113/// <returns>A <see cref="ServerInstance"/> with the proxy routing info needed for tests.</returns> 114public Task<ServerInstance> StartServerAsync<TApp>(Action<ServerStartOptions>? configure = null) 128/// <returns>A <see cref="ServerInstance"/> with the proxy routing info needed for tests.</returns> 129public async Task<ServerInstance> StartServerAsync( 135var key = ServerInstance.ComputeKey(appName, options); 137if (_instances.TryGetValue(key, out var existing)) 156var instance = new ServerInstance(appName, key, ProxyUrl, instanceKey => 195foreach (var instance in _instances.Values)
Infrastructure\ServerInstance.cs (1)
20/// Disposing a <see cref="ServerInstance"/> kills the app process and unregisters
Infrastructure\TestLockClient.cs (3)
25private readonly ServerInstance _server; 28TestLockClient(ServerInstance server, string sessionId) 42ServerInstance server, IBrowserContext context)