1 write to DefaultValue
aspire (1)
Interaction\PromptBinding.cs (1)
40
DefaultValue
= defaultValue;
19 references to DefaultValue
aspire (6)
Commands\AgentInitCommand.cs (2)
406
if ((noClientScopeProvided ? noClientScope : scopeBinding.
DefaultValue
) is AgentConfigurationScope.Project &&
531
var scope = scopeProvided ? requestedScope : scopeBinding.
DefaultValue
;
Interaction\ExtensionInteractionService.cs (3)
183
result = await Backchannel.PromptForStringAsync(StringUtils.RemoveMarkup(promptText), binding?.
DefaultValue
, validator, required, _cancellationToken).ConfigureAwait(false);
225
var result = await Backchannel.PromptForFilePathAsync(StringUtils.RemoveMarkup(promptText), binding?.
DefaultValue
, directory, _cancellationToken).ConfigureAwait(false);
287
var result = await Backchannel.ConfirmAsync(StringUtils.RemoveMarkup(promptText), binding?.
DefaultValue
?? false, _cancellationToken).ConfigureAwait(false);
Interaction\PromptBinding.cs (1)
102
return (wasProvided, optionValue, binding.
DefaultValue
);
Aspire.Cli.Tests (13)
Commands\PublishCommandPromptingIntegrationTests.cs (3)
1165
StringPromptCalls.Add(new StringPromptCall(promptText, binding?.
DefaultValue
, isSecret, required));
1176
return Task.FromResult(binding?.
DefaultValue
?? string.Empty);
1222
var defaultValue = binding?.
DefaultValue
?? false;
Interaction\ConsoleInteractionServiceTests.cs (3)
2274
Assert.Equal("test", binding.
DefaultValue
);
2300
Assert.True(binding.
DefaultValue
);
2550
Assert.Equal("new-value", updated.
DefaultValue
);
TestServices\TestExtensionInteractionService.cs (2)
73
return Task.FromResult(binding?.
DefaultValue
?? string.Empty);
219
var defaultValue = binding?.
DefaultValue
?? false;
TestServices\TestInteractionService.cs (5)
155
StringPromptCalls.Add(new StringPromptCall(promptText, binding?.
DefaultValue
, isSecret, required));
169
FilePathPromptCalls.Add(new FilePathPromptCall(promptText, binding?.
DefaultValue
, directory));
196
return Task.FromResult(binding?.
DefaultValue
?? string.Empty);
259
MultiSelectionPromptCalls.Add((promptText, binding?.
DefaultValue
, preSelected?.Cast<object>().ToArray() ?? [], optional));
348
var defaultValue = binding?.
DefaultValue
?? false;