11 instantiations of BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (11)
BrowserHostTests.cs (1)
26var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsSessionManagerTests.cs (8)
25var identity = new BrowserHostIdentity(executablePath, userDataDirectory); 26var identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar); 174var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName); 257var identity = new BrowserHostIdentity( 287var identity = new BrowserHostIdentity( 317var identity = new BrowserHostIdentity( 350var identity = new BrowserHostIdentity( 629new BrowserHostIdentity(
BrowserPageSessionTests.cs (1)
349public BrowserHostIdentity Identity { get; } = new(
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
57var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path);
36 references to BrowserHostIdentity
Aspire.Hosting.Browsers.Tests (36)
BrowserHostTests.cs (1)
26var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName);
BrowserLogsRunningSessionTests.cs (2)
102private sealed class TestBrowserHost(BrowserHostIdentity identity) : IBrowserHost 106public BrowserHostIdentity Identity { get; } = identity;
BrowserLogsSessionManagerTests.cs (10)
25var identity = new BrowserHostIdentity(executablePath, userDataDirectory); 26var identityWithTrailingSeparator = new BrowserHostIdentity(executablePath, userDataDirectory + Path.DirectorySeparatorChar); 36var exception = Record.Exception(() => default(BrowserHostIdentity).GetHashCode()); 174var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.FullName); 257var identity = new BrowserHostIdentity( 287var identity = new BrowserHostIdentity( 317var identity = new BrowserHostIdentity( 350var identity = new BrowserHostIdentity( 636public TestBrowserHost(BrowserHostIdentity identity, string? profileDirectoryName) 642public 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)
11BrowserHostIdentity identity, 23public BrowserHostIdentity Identity { get; } = identity; 88BrowserHostIdentity identity, 141BrowserHostIdentity identity, 257BrowserHostIdentity identity,
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (7)
18private readonly Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>> _createHostAsync; 19private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new(); 39Func<BrowserConfiguration, BrowserHostIdentity, BrowserLogsUserDataDirectory, CancellationToken, Task<IBrowserHost>>? createHostAsync, 57var identity = new BrowserHostIdentity(browserExecutable, userDataDirectory.Path); 154private async ValueTask ReleaseAsync(BrowserHostIdentity identity, CancellationToken cancellationToken) 292BrowserHostIdentity identity, 348private 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);