11 instantiations of BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (11)
BrowserHostTests.cs (1)
26
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.FullName);
BrowserLogsSessionManagerTests.cs (8)
25
var identity = new
BrowserHostIdentity
(executablePath, userDataDirectory);
26
var identityWithTrailingSeparator = new
BrowserHostIdentity
(executablePath, userDataDirectory + Path.DirectorySeparatorChar);
174
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.FullName);
257
var identity = new
BrowserHostIdentity
(
287
var identity = new
BrowserHostIdentity
(
317
var identity = new
BrowserHostIdentity
(
350
var identity = new
BrowserHostIdentity
(
629
new
BrowserHostIdentity
(
BrowserPageSessionTests.cs (1)
349
public BrowserHostIdentity Identity { get; } =
new
(
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
57
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.Path);
36 references to BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (36)
BrowserHostTests.cs (1)
26
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsRunningSessionTests.cs (2)
102
private sealed class TestBrowserHost(
BrowserHostIdentity
identity) : IBrowserHost
106
public
BrowserHostIdentity
Identity { get; } = identity;
BrowserLogsSessionManagerTests.cs (10)
25
var
identity = new BrowserHostIdentity(executablePath, userDataDirectory);
26
var
identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar);
36
var exception = Record.Exception(() => default(
BrowserHostIdentity
).GetHashCode());
174
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
257
var
identity = new BrowserHostIdentity(
287
var
identity = new BrowserHostIdentity(
317
var
identity = new BrowserHostIdentity(
350
var
identity = new BrowserHostIdentity(
636
public TestBrowserHost(
BrowserHostIdentity
identity, string? profileDirectoryName)
642
public
BrowserHostIdentity
Identity { get; }
BrowserPageSessionTests.cs (1)
349
public
BrowserHostIdentity
Identity { get; } = new(
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (2)
52
public async Task<BrowserDebugEndpointMetadata?> TryReadAndValidateAsync(
BrowserHostIdentity
identity, string? profileDirectoryName, CancellationToken cancellationToken)
151
public static async Task WriteAsync(
BrowserHostIdentity
identity, string? profileDirectoryName, Uri endpoint, int processId, CancellationToken cancellationToken)
src\Aspire.Hosting.Browsers\BrowserHost.cs (5)
11
BrowserHostIdentity
identity,
23
public
BrowserHostIdentity
Identity { get; } = identity;
88
BrowserHostIdentity
identity,
141
BrowserHostIdentity
identity,
257
BrowserHostIdentity
identity,
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (7)
18
private readonly Func<BrowserConfiguration,
BrowserHostIdentity
, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>> _createHostAsync;
19
private readonly Dictionary<
BrowserHostIdentity
, BrowserHostEntry> _hosts = new();
39
Func<BrowserConfiguration,
BrowserHostIdentity
, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>>? createHostAsync,
57
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path);
154
private async ValueTask ReleaseAsync(
BrowserHostIdentity
identity, CancellationToken cancellationToken)
292
BrowserHostIdentity
identity,
348
private static void ValidateProfileCompatibility(
BrowserHostIdentity
identity, string? existingProfileDirectoryName, string? requestedProfileDirectoryName)
src\Aspire.Hosting.Browsers\IBrowserHost.cs (8)
14
BrowserHostIdentity
Identity { get; }
131
internal readonly struct BrowserHostIdentity : IEquatable<
BrowserHostIdentity
>
149
public bool Equals(
BrowserHostIdentity
other) =>
153
public override bool Equals(object? obj) => obj is
BrowserHostIdentity
other && Equals(other);
165
public static bool operator ==(
BrowserHostIdentity
left,
BrowserHostIdentity
right) => left.Equals(right);
167
public static bool operator !=(
BrowserHostIdentity
left,
BrowserHostIdentity
right) => !left.Equals(right);