11 instantiations of BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (11)
BrowserHostTests.cs (1)
28
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.FullName);
BrowserLogsSessionManagerTests.cs (8)
26
var identity = new
BrowserHostIdentity
(executablePath, userDataDirectory);
27
var identityWithTrailingSeparator = new
BrowserHostIdentity
(executablePath, userDataDirectory + Path.DirectorySeparatorChar);
175
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.FullName);
258
var identity = new
BrowserHostIdentity
(
288
var identity = new
BrowserHostIdentity
(
318
var identity = new
BrowserHostIdentity
(
351
var identity = new
BrowserHostIdentity
(
630
new
BrowserHostIdentity
(
BrowserPageSessionTests.cs (1)
349
public BrowserHostIdentity Identity { get; } =
new
(
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
59
var identity = new
BrowserHostIdentity
(browserExecutable, userDataDirectory.Path);
36 references to BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (36)
BrowserHostTests.cs (1)
28
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsRunningSessionTests.cs (2)
103
private sealed class TestBrowserHost(
BrowserHostIdentity
identity) : IBrowserHost
107
public
BrowserHostIdentity
Identity { get; } = identity;
BrowserLogsSessionManagerTests.cs (10)
26
var
identity = new BrowserHostIdentity(executablePath, userDataDirectory);
27
var
identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar);
37
var exception = Record.Exception(() => default(
BrowserHostIdentity
).GetHashCode());
175
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
258
var
identity = new BrowserHostIdentity(
288
var
identity = new BrowserHostIdentity(
318
var
identity = new BrowserHostIdentity(
351
var
identity = new BrowserHostIdentity(
637
public TestBrowserHost(
BrowserHostIdentity
identity, string? profileDirectoryName)
643
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)
13
BrowserHostIdentity
identity,
25
public
BrowserHostIdentity
Identity { get; } = identity;
90
BrowserHostIdentity
identity,
143
BrowserHostIdentity
identity,
259
BrowserHostIdentity
identity,
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (7)
20
private readonly Func<BrowserConfiguration,
BrowserHostIdentity
, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>> _createHostAsync;
21
private readonly Dictionary<
BrowserHostIdentity
, BrowserHostEntry> _hosts = new();
41
Func<BrowserConfiguration,
BrowserHostIdentity
, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>>? createHostAsync,
59
var
identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path);
156
private async ValueTask ReleaseAsync(
BrowserHostIdentity
identity, CancellationToken cancellationToken)
294
BrowserHostIdentity
identity,
350
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);