8 implementations of PromptConfirmAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
750public async Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Interaction\ExtensionInteractionService.cs (1)
271public async Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1220public Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (1)
3935public Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Projects\ExtensionGuestLauncherTests.cs (1)
240public Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
387public Task<bool> PromptConfirmAsync(string prompt, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestExtensionInteractionService.cs (1)
211public Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestInteractionService.cs (1)
326public Task<bool> PromptConfirmAsync(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
24 references to PromptConfirmAsync
aspire (23)
Commands\AgentInitCommand.cs (3)
242var runAgentInit = await interactionService.PromptConfirmAsync( 521configureMcp = await InteractionService.PromptConfirmAsync( 1313return await InteractionService.PromptConfirmAsync(prompt, removeSkillCopiesBinding, cancellationToken);
Commands\PipelineCommandBase.cs (1)
1227InputType.Boolean => (await InteractionService.PromptConfirmAsync(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
Commands\RenderCommand.cs (1)
380var confirmed = await InteractionService.PromptConfirmAsync(
Commands\TemplateManagementCommand.cs (1)
174var confirmed = await InteractionService.PromptConfirmAsync(
Commands\UpdateCommand.cs (4)
530var shouldUpdateCli = await InteractionService.PromptConfirmAsync( 582var shouldUpdateCli = await InteractionService.PromptConfirmAsync( 678var confirmed = await InteractionService.PromptConfirmAsync( 779var shouldUpdateCli = await InteractionService.PromptConfirmAsync(
Configuration\ConfigSourceService.cs (1)
249accepted = await interaction.PromptConfirmAsync(consentPrompt,
DotNet\DotNetAppHostUpdateTransaction.cs (1)
42if (!supportsInteractiveInput || !await interactionService.PromptConfirmAsync(
Projects\GuestAppHostProject.cs (1)
2001if (!await _interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
Projects\ProjectUpdater.cs (2)
179if (!context.DryRun && !await interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken)) 1836var shouldProceed = await interactionService.PromptConfirmAsync(
Projects\RepositoryToolUpdater.cs (1)
95if (await interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, confirmBinding, cancellationToken: cancellationToken))
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
136var useLocalhostTld = await _interactionService.PromptConfirmAsync(
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
131var useRedisCache = await _interactionService.PromptConfirmAsync(
Templating\DotNetTemplateFactory.cs (3)
296var useLocalhostTld = await interactionService.PromptConfirmAsync( 312var useRedisCache = await interactionService.PromptConfirmAsync( 336var createTestProject = await interactionService.PromptConfirmAsync(
Templating\TemplateEngineFactory.cs (1)
559var value = await interactionService.PromptConfirmAsync(
Templating\TemplateNuGetConfigService.cs (1)
89!await interactionService.PromptConfirmAsync(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3936=> _innerService.PromptConfirmAsync(promptText, binding, cancellationToken);