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)
85
var connection =
_connection
?? throw new InvalidOperationException("Tracked browser debug connection is not available.");
192
var connection =
_connection
;
196
if (connection is not null && ReferenceEquals(connection,
_connection
) && _targetId is not null)
247
await
_connection
.EnableTargetDiscoveryAsync(cancellationToken).ConfigureAwait(false);
261
var attachToTargetResult = await
_connection
.AttachToTargetAsync(_targetId, cancellationToken).ConfigureAwait(false);
267
await
_connection
.EnablePageInstrumentationAsync(_targetSessionId, cancellationToken).ConfigureAwait(false);
271
await
_connection
.NavigateAsync(_targetSessionId, _url, cancellationToken).ConfigureAwait(false);
282
if (_reuseInitialBlankTarget &&
_connection
is not null)
284
var targets = await
_connection
.GetTargetsAsync(cancellationToken).ConfigureAwait(false);
293
var createTargetResult = await
_connection
!.CreateTargetAsync(cancellationToken).ConfigureAwait(false);
460
var connection =
_connection
?? throw new InvalidOperationException("Tracked browser debug connection is not available.");
484
var connection =
_connection
;