2 writes to _connection
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (2)
243_connection = await _connectionFactory(HandleEventAsync, _logger, cancellationToken).ConfigureAwait(false); 485_connection = null;
12 references to _connection
Aspire.Hosting.Browsers.Tests (12)
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (12)
85var connection = _connection ?? throw new InvalidOperationException("Tracked browser debug connection is not available."); 192var connection = _connection; 196if (connection is not null && ReferenceEquals(connection, _connection) && _targetId is not null) 247await _connection.EnableTargetDiscoveryAsync(cancellationToken).ConfigureAwait(false); 261var attachToTargetResult = await _connection.AttachToTargetAsync(_targetId, cancellationToken).ConfigureAwait(false); 267await _connection.EnablePageInstrumentationAsync(_targetSessionId, cancellationToken).ConfigureAwait(false); 271await _connection.NavigateAsync(_targetSessionId, _url, cancellationToken).ConfigureAwait(false); 282if (_reuseInitialBlankTarget && _connection is not null) 284var targets = await _connection.GetTargetsAsync(cancellationToken).ConfigureAwait(false); 293var createTargetResult = await _connection!.CreateTargetAsync(cancellationToken).ConfigureAwait(false); 460var connection = _connection ?? throw new InvalidOperationException("Tracked browser debug connection is not available."); 484var connection = _connection;