1 write to _targetId
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (1)
251
_targetId
= await CreateTargetAsync(cancellationToken).ConfigureAwait(false);
9 references to _targetId
Aspire.Hosting.Browsers.Tests (9)
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (9)
71
public string TargetId =>
_targetId
?? throw new InvalidOperationException("Browser target id is not available before the target session starts.");
196
if (connection is not null && ReferenceEquals(connection, _connection) &&
_targetId
is not null)
201
await connection.CloseTargetAsync(
_targetId
, closeTargetCts.Token).ConfigureAwait(false);
205
_logger.LogDebug(ex, "Failed to close tracked browser target '{TargetId}' for session '{SessionId}'.",
_targetId
, _sessionId);
254
if (
_targetId
is null)
261
var attachToTargetResult = await _connection.AttachToTargetAsync(
_targetId
, cancellationToken).ConfigureAwait(false);
403
_logger.LogTrace("Attempting to reconnect tracked browser page session '{SessionId}' to target '{TargetId}'.", _sessionId,
_targetId
);
405
_logger.LogTrace("Reconnected tracked browser page session '{SessionId}' to target '{TargetId}'.", _sessionId,
_targetId
);
443
if (TryGetPageCompletion(protocolEvent,
_targetId
, _targetSessionId) is { } pageCompletion)