5 writes to Work
Aspire.Hosting.Tests (4)
Terminals\InteractionServiceTerminalTests.cs (4)
189var options = withWork ? new TerminalInteractionOptions { Work = _ => { workCalled = true; return Task.CompletedTask; } } : null; 233Work = async context => 289: service.PromptTerminalAsync("Message", terminal, new TerminalInteractionOptions { Work = context => Work(context.CancellationToken) }, cts.Token); 349: service.PromptTerminalAsync("Message", terminal, new TerminalInteractionOptions { Work = _ => throw failure });
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
342Work = async context =>
7 references to Work
Aspire.Hosting (2)
IInteractionService.cs (1)
152/// When <see cref="TerminalInteractionOptions.Work"/> is supplied, successful completion closes the dialog.
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,