8 implementations of PromptConfirmAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
658
public async Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Interaction\ExtensionInteractionService.cs (1)
264
public async Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1218
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (1)
3524
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Projects\ExtensionGuestLauncherTests.cs (1)
177
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
388
public Task<bool>
PromptConfirmAsync
(string prompt, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestExtensionInteractionService.cs (1)
159
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestInteractionService.cs (1)
287
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
18 references to PromptConfirmAsync
aspire (17)
Commands\AgentInitCommand.cs (1)
116
var runAgentInit = await interactionService.
PromptConfirmAsync
(
Commands\PipelineCommandBase.cs (1)
1157
InputType.Boolean => (await InteractionService.
PromptConfirmAsync
(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
Commands\RenderCommand.cs (1)
375
var confirmed = await InteractionService.
PromptConfirmAsync
(
Commands\UpdateCommand.cs (4)
382
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
434
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
526
var confirmed = await InteractionService.
PromptConfirmAsync
(
580
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
Packaging\NuGetConfigPrompter.cs (2)
50
var shouldCreate = await _interactionService.
PromptConfirmAsync
(
63
var shouldUpdate = await _interactionService.
PromptConfirmAsync
(
Projects\GuestAppHostProject.cs (1)
1526
if (!await _interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
Projects\ProjectUpdater.cs (2)
86
if (!await interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
1261
var shouldProceed = await interactionService.
PromptConfirmAsync
(
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
135
var useLocalhostTld = await _interactionService.
PromptConfirmAsync
(
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
131
var useRedisCache = await _interactionService.
PromptConfirmAsync
(
Templating\DotNetTemplateFactory.cs (3)
291
var useLocalhostTld = await interactionService.
PromptConfirmAsync
(
307
var useRedisCache = await interactionService.
PromptConfirmAsync
(
331
var createTestProject = await interactionService.
PromptConfirmAsync
(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3525
=> _innerService.
PromptConfirmAsync
(promptText, binding, cancellationToken);