1 instantiation of ServerInstance
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerFixture.cs (1)
156
var 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
"/>.
47
this BrowserNewContextOptions options,
ServerInstance
server)
102
ServerInstance
server,
128
this IBrowserContext context,
ServerInstance
server, string sessionId)
Infrastructure\RemoteLock.cs (2)
18
private readonly
ServerInstance
_server;
22
internal RemoteLock(
ServerInstance
server, string key)
Infrastructure\ServerFixture.cs (9)
52
private readonly ConcurrentDictionary<string,
ServerInstance
> _instances = new();
113
/// <returns>A <see cref="
ServerInstance
"/> with the proxy routing info needed for tests.</returns>
114
public Task<
ServerInstance
> StartServerAsync<TApp>(Action<ServerStartOptions>? configure = null)
128
/// <returns>A <see cref="
ServerInstance
"/> with the proxy routing info needed for tests.</returns>
129
public async Task<
ServerInstance
> StartServerAsync(
135
var key =
ServerInstance
.ComputeKey(appName, options);
137
if (_instances.TryGetValue(key, out
var
existing))
156
var
instance = new ServerInstance(appName, key, ProxyUrl, instanceKey =>
195
foreach (
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)
25
private readonly
ServerInstance
_server;
28
TestLockClient(
ServerInstance
server, string sessionId)
42
ServerInstance
server, IBrowserContext context)