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)
1220
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (1)
3935
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)
211
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
TestServices\TestInteractionService.cs (1)
326
public Task<bool>
PromptConfirmAsync
(string promptText, PromptBinding<bool>? binding = null, CancellationToken cancellationToken = default)
24 references to PromptConfirmAsync
aspire (23)
Commands\AgentInitCommand.cs (3)
242
var runAgentInit = await interactionService.
PromptConfirmAsync
(
521
configureMcp = await InteractionService.
PromptConfirmAsync
(
1313
return await InteractionService.
PromptConfirmAsync
(prompt, removeSkillCopiesBinding, cancellationToken);
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)
380
var confirmed = await InteractionService.
PromptConfirmAsync
(
Commands\TemplateManagementCommand.cs (1)
174
var confirmed = await InteractionService.
PromptConfirmAsync
(
Commands\UpdateCommand.cs (4)
530
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
582
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
678
var confirmed = await InteractionService.
PromptConfirmAsync
(
779
var shouldUpdateCli = await InteractionService.
PromptConfirmAsync
(
Configuration\ConfigSourceService.cs (1)
249
accepted = await interaction.
PromptConfirmAsync
(consentPrompt,
DotNet\DotNetAppHostUpdateTransaction.cs (1)
42
if (!supportsInteractiveInput || !await interactionService.
PromptConfirmAsync
(
Projects\GuestAppHostProject.cs (1)
2001
if (!await _interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
Projects\ProjectUpdater.cs (2)
179
if (!context.DryRun && !await interactionService.
PromptConfirmAsync
(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
1836
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)
559
var 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);