19 instantiations of InteractionInput
Aspire.Hosting (3)
InteractionService.cs (1)
76
return await PromptInputAsync(title, message, new
InteractionInput
{ InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (2)
148
var input = new
InteractionInput
157
var saveParameters = new
InteractionInput
Aspire.Hosting.Tests (1)
Dashboard\DashboardServiceTests.cs (1)
318
new Aspire.Hosting.
InteractionInput
{ InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
37
new
InteractionInput
44
new
InteractionInput
51
new
InteractionInput
96
new
InteractionInput
118
new
InteractionInput
132
new
InteractionInput
152
new
InteractionInput
165
new
InteractionInput
179
new
InteractionInput
Stress.AppHost (6)
InteractionCommands.cs (6)
101
var dinnerInput = new
InteractionInput
127
var numberOfPeopleInput = new
InteractionInput
{ InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
130
new
InteractionInput
{ InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true },
131
new
InteractionInput
{ InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true },
134
new
InteractionInput
{ InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
174
inputs.Add(new
InteractionInput
43 references to InteractionInput
Aspire.Hosting (26)
Dashboard\DashboardServiceData.cs (1)
171
var
modelInput = inputsInfo.Inputs[i];
IInteractionService.cs (10)
59
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
62
/// Prompts the user for a single input using a specified <see cref="
InteractionInput
"/>.
72
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
79
/// <param name="inputs">A collection of <see cref="
InteractionInput
"/> to prompt for.</param>
85
Task<InteractionResult<IReadOnlyList<
InteractionInput
>>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
144
/// Specifies the type of input for an <see cref="
InteractionInput
"/>.
196
public required IReadOnlyList<
InteractionInput
> Inputs { get; init; }
213
public void AddValidationError(
InteractionInput
input, string errorMessage)
InteractionService.cs (12)
74
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
79
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
84
return InteractionResultFactory.Cancel<
InteractionInput
>();
90
public async Task<InteractionResult<IReadOnlyList<
InteractionInput
>>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
104
var inputState = completion.State as IReadOnlyList<
InteractionInput
>;
106
? InteractionResultFactory.Cancel<IReadOnlyList<
InteractionInput
>>()
229
if (result.State is IReadOnlyList<
InteractionInput
> inputs)
235
foreach (
var
input in inputs)
390
public InputsInteractionInfo(IReadOnlyList<
InteractionInput
> inputs)
395
public IReadOnlyList<
InteractionInput
> Inputs { get; }
Orchestrator\ParameterProcessor.cs (3)
143
var resourceInputs = new List<(ParameterResource ParameterResource,
InteractionInput
Input)>();
148
var
input = new InteractionInput
157
var
saveParameters = new InteractionInput
Aspire.Hosting.Tests (7)
TestInteractionService.cs (7)
10
internal sealed record InteractionData(string Title, string? Message, IReadOnlyList<
InteractionInput
> Inputs, InteractionOptions? Options, TaskCompletionSource<object> CompletionTcs);
23
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
28
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
33
public async Task<InteractionResult<IReadOnlyList<
InteractionInput
>>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
return (InteractionResult<IReadOnlyList<
InteractionInput
>>)await data.CompletionTcs.Task;
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
68
var
appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name");
74
var
versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (8)
InteractionCommands.cs (8)
75
var
input = context.Inputs[0];
93
var
input = result.Data;
101
var
dinnerInput = new InteractionInput
127
var
numberOfPeopleInput = new InteractionInput { InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
128
var inputs = new List<
InteractionInput
>
161
foreach (
var
updatedInput in result.Data)
171
var inputs = new List<
InteractionInput
>();
195
foreach (
var
input in result.Data)