9 instantiations of BrowserPageSessionResult
Aspire.Hosting.Browsers (9)
BrowserPageSession.cs (9)
104new BrowserPageSessionResult(BrowserPageSessionCompletionKind.PageClosed, Error: null), 107new BrowserPageSessionResult( 114new BrowserPageSessionResult(BrowserPageSessionCompletionKind.PageClosed, Error: null), 118? new BrowserPageSessionResult(BrowserPageSessionCompletionKind.PageClosed, Error: null) 119: new BrowserPageSessionResult( 214_completionSource.TrySetResult(new BrowserPageSessionResult(BrowserPageSessionCompletionKind.Stopped, Error: null)); 347return new BrowserPageSessionResult(BrowserPageSessionCompletionKind.BrowserExited, error); 363return new BrowserPageSessionResult(BrowserPageSessionCompletionKind.Stopped, Error: null); 373return new BrowserPageSessionResult(BrowserPageSessionCompletionKind.ConnectionLost, connectionError);
7 references to BrowserPageSessionResult
Aspire.Hosting.Browsers (7)
BrowserLogsRunningSession.cs (1)
280var result = await pageSession.Completion.ConfigureAwait(false);
BrowserPageSession.cs (5)
27private readonly TaskCompletionSource<BrowserPageSessionResult> _completionSource = new(TaskCreationOptions.RunContinuationsAsynchronously); 44private Task<BrowserPageSessionResult>? _monitorTask; 75public Task<BrowserPageSessionResult> Completion => _monitorTask ?? throw new InvalidOperationException("Browser page session has not started."); 99internal static BrowserPageSessionResult? TryGetPageCompletion(BrowserLogsCdpProtocolEvent protocolEvent, string? targetId, string? targetSessionId) 327private async Task<BrowserPageSessionResult> MonitorAsync()
IBrowserHost.cs (1)
58Task<BrowserPageSessionResult> Completion { get; }