1 instantiation of ServerInstance
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerFactory.cs (1)
176
var instance = new
ServerInstance
(appName, key, ProxyUrl, instanceKey =>
23 references to ServerInstance
Microsoft.AspNetCore.Components.Testing (23)
Infrastructure\PlaywrightExtensions.cs (5)
30
/// so the YARP proxy routes requests to the correct <see cref="
ServerInstance
"/>.
36
this BrowserNewContextOptions options,
ServerInstance
server)
94
ServerInstance
server,
117
/// Variant of <see cref="NewTracedContextAsync(IBrowser,
ServerInstance
, string, ITestArtifactManager, BrowserNewContextOptions?)"/>
150
this IBrowserContext context,
ServerInstance
server, string sessionId)
Infrastructure\RemoteLock.cs (2)
18
private readonly
ServerInstance
_server;
22
internal RemoteLock(
ServerInstance
server, string key)
Infrastructure\ServerFactory.cs (7)
24
internal abstract Task<
ServerInstance
> StartServerAsync(
93
private readonly ConcurrentDictionary<string,
ServerInstance
> _instances = new();
147
internal override async Task<
ServerInstance
> StartServerAsync(
155
var key =
ServerInstance
.ComputeKey(appName, options);
157
if (_instances.TryGetValue(key, out
var
existing))
176
var
instance = new ServerInstance(appName, key, ProxyUrl, instanceKey =>
249
foreach (
var
instance in _instances.Values)
Infrastructure\ServerInstance.cs (1)
19
/// 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)
Playwright\BrowserTest.cs (1)
101
ServerInstance
server,
Playwright\UITest.cs (4)
35
private readonly List<
ServerInstance
> _diagnosticServers = new();
60
protected async Task<
ServerInstance
> StartServerAsync<TApp>(
69
var
server = await factory.StartServerAsync(appName, configure, ArtifactManager).ConfigureAwait(false);
106
ServerInstance
[] diagnosticServers;