4 implementations of IBrowserHost
Aspire.Hosting.Browsers.Tests (4)
BrowserLogsRunningSessionTests.cs (1)
103private sealed class TestBrowserHost(BrowserHostIdentity identity) : IBrowserHost
BrowserLogsSessionManagerTests.cs (1)
626private sealed class TestBrowserHost : IBrowserHost
BrowserPageSessionTests.cs (1)
345private sealed class TestBrowserHost : IBrowserHost
src\Aspire.Hosting.Browsers\BrowserHost.cs (1)
19bool reuseInitialBlankTarget) : IBrowserHost
20 references to IBrowserHost
Aspire.Hosting.Browsers.Tests (20)
BrowserLogsRunningSessionTests.cs (1)
35return Task.FromResult<IBrowserHost>(host);
BrowserLogsSessionManagerTests.cs (3)
76return Task.FromResult<IBrowserHost>(host); 116return Task.FromResult<IBrowserHost>(host); 146createHostAsync: (configuration, identity, _, _) => Task.FromResult<IBrowserHost>(new TestBrowserHost(identity, configuration.Profile)));
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (9)
20private readonly Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>> _createHostAsync; 41Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>>? createHostAsync, 97var host = await _createHostAsync(configuration, identity, userDataDirectory, cancellationToken).ConfigureAwait(false); 127List<IBrowserHost> hosts; 145foreach (var host in hosts) 158IBrowserHost? hostToDispose = null; 292private async Task<IBrowserHost> CreateHostCoreAsync( 377private sealed class BrowserHostEntry(IBrowserHost host, string? profileDirectoryName, int ReferenceCount) 379public IBrowserHost Host { get; } = host;
src\Aspire.Hosting.Browsers\BrowserLogsRunningSession.cs (1)
230var browserHost = _browserHostLease.Host;
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (4)
31private readonly IBrowserHost _host; 50IBrowserHost host, 128IBrowserHost host, 152IBrowserHost host,
src\Aspire.Hosting.Browsers\IBrowserHost.cs (2)
91public BrowserHostLease(IBrowserHost host, Func<CancellationToken, ValueTask> releaseAsync) 97public IBrowserHost Host { get; }