8 implementations of PromptConfirmAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
750
public async Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Interaction\ExtensionInteractionService.cs (1)
271
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)
3711
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Projects\ExtensionGuestLauncherTests.cs (1)
240
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
387
public Task<bool>
PromptConfirmAsync
(string prompt, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestExtensionInteractionService.cs (1)
210
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestInteractionService.cs (1)
311
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
22 references to PromptConfirmAsync
aspire (21)
Commands\AgentInitCommand.cs (2)
228
var runAgentInit = await interactionService.
PromptConfirmAsync
(
499
configureMcp = await InteractionService.
PromptConfirmAsync
(
Commands\PipelineCommandBase.cs (1)
1227
InputType.Boolean => (await InteractionService.
PromptConfirmAsync
(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
Commands\RenderCommand.cs (1)
376
var confirmed = await InteractionService.
PromptConfirmAsync
(
Commands\TemplateManagementCommand.cs (1)
174
var confirmed = await InteractionService.
PromptConfirmAsync
(
Commands\UpdateCommand.cs (4)
481
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
533
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
625
var confirmed = await InteractionService.
PromptConfirmAsync
(
698
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
Configuration\ConfigSourceService.cs (1)
223
accepted = await interaction.
PromptConfirmAsync
(ConfigSourceStrings.UseSourcePrompt,
Projects\GuestAppHostProject.cs (1)
1976
if (!await _interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
Projects\ProjectUpdater.cs (2)
169
if (!await interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
1755
var shouldProceed = await interactionService.
PromptConfirmAsync
(
Projects\RepositoryToolUpdater.cs (1)
95
if (await interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, confirmBinding, cancellationToken: cancellationToken))
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
136
var useLocalhostTld = await _interactionService.
PromptConfirmAsync
(
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
131
var useRedisCache = await _interactionService.
PromptConfirmAsync
(
Templating\DotNetTemplateFactory.cs (3)
296
var useLocalhostTld = await interactionService.
PromptConfirmAsync
(
312
var useRedisCache = await interactionService.
PromptConfirmAsync
(
336
var createTestProject = await interactionService.
PromptConfirmAsync
(
Templating\TemplateEngineFactory.cs (1)
539
var value = await interactionService.
PromptConfirmAsync
(
Templating\TemplateNuGetConfigService.cs (1)
89
!await interactionService.
PromptConfirmAsync
(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3712
=> _innerService.
PromptConfirmAsync
(promptText, binding, cancellationToken);