6 writes to CancellationToken
Aspire.Hosting (1)
InteractionService.cs (1)
330options.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
96options?.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
96options?.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
96options?.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
96options?.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
96options?.Work is { } work ? token => work(new TerminalContext { CancellationToken = token }) : null,
7 references to CancellationToken
Aspire.Hosting (2)
IInteractionService.cs (2)
154/// User or external cancellation closes the dialog and signals <see cref="TerminalContext.CancellationToken"/>; 1034/// <see cref="TerminalContext.CancellationToken"/> and the prompt waits for the callback to finish.
Aspire.Hosting.Tests (3)
Terminals\InteractionServiceTerminalTests.cs (3)
235using var registration = context.CancellationToken.Register(() => canceled.TrySetResult()); 239context.CancellationToken.ThrowIfCancellationRequested(); 289: service.PromptTerminalAsync("Message", terminal, new TerminalInteractionOptions { Work = context => Work(context.CancellationToken) }, cts.Token);
Terminals.AppHost (2)
TerminalInteractionCommands.cs (2)
344(number, attempts) = await PlayNumberGuessAsync(terminal, limit, context.CancellationToken); 346await Task.Delay(TimeSpan.FromSeconds(2), context.CancellationToken);