11 instantiations of BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (11)
BrowserHostTests.cs (1)
28var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsSessionManagerTests.cs (8)
26var identity = new BrowserHostIdentity(executablePath, userDataDirectory); 27var identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar); 175var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName); 258var identity = new BrowserHostIdentity( 288var identity = new BrowserHostIdentity( 318var identity = new BrowserHostIdentity( 351var identity = new BrowserHostIdentity( 630new BrowserHostIdentity(
BrowserPageSessionTests.cs (1)
349public BrowserHostIdentity Identity { get; } = new(
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
59var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path);
36 references to BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (36)
BrowserHostTests.cs (1)
28var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsRunningSessionTests.cs (2)
103private sealed class TestBrowserHost(BrowserHostIdentity identity) : IBrowserHost 107public BrowserHostIdentity Identity { get; } = identity;
BrowserLogsSessionManagerTests.cs (10)
26var identity = new BrowserHostIdentity(executablePath, userDataDirectory); 27var identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar); 37var exception = Record.Exception(() => default(BrowserHostIdentity).GetHashCode()); 175var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName); 258var identity = new BrowserHostIdentity( 288var identity = new BrowserHostIdentity( 318var identity = new BrowserHostIdentity( 351var identity = new BrowserHostIdentity( 637public TestBrowserHost(BrowserHostIdentity identity, string? profileDirectoryName) 643public BrowserHostIdentity Identity { get; }
BrowserPageSessionTests.cs (1)
349public BrowserHostIdentity Identity { get; } = new(
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (2)
52public async Task<BrowserDebugEndpointMetadata?> TryReadAndValidateAsync(BrowserHostIdentity identity, string? profileDirectoryName, CancellationToken cancellationToken) 151public static async Task WriteAsync(BrowserHostIdentity identity, string? profileDirectoryName, Uri endpoint, int processId, CancellationToken cancellationToken)
src\Aspire.Hosting.Browsers\BrowserHost.cs (5)
13BrowserHostIdentity identity, 25public BrowserHostIdentity Identity { get; } = identity; 90BrowserHostIdentity identity, 143BrowserHostIdentity identity, 259BrowserHostIdentity identity,
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (7)
20private readonly Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>> _createHostAsync; 21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new(); 41Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>>? createHostAsync, 59var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path); 156private async ValueTask ReleaseAsync(BrowserHostIdentity identity, CancellationToken cancellationToken) 294BrowserHostIdentity identity, 350private static void ValidateProfileCompatibility(BrowserHostIdentity identity, string? existingProfileDirectoryName, string? requestedProfileDirectoryName)
src\Aspire.Hosting.Browsers\IBrowserHost.cs (8)
14BrowserHostIdentity Identity { get; } 131internal readonly struct BrowserHostIdentity : IEquatable<BrowserHostIdentity> 149public bool Equals(BrowserHostIdentity other) => 153public override bool Equals(object? obj) => obj is BrowserHostIdentity other && Equals(other); 165public static bool operator ==(BrowserHostIdentity left, BrowserHostIdentity right) => left.Equals(right); 167public static bool operator !=(BrowserHostIdentity left, BrowserHostIdentity right) => !left.Equals(right);