6 instantiations of InteractionInput
Aspire.Hosting (1)
ApplicationModel\InteractionService.cs (1)
105
return await PromptInputAsync(title, message, new
InteractionInput
{ InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Stress.AppHost (5)
Program.cs (5)
193
new
InteractionInput
{ InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true },
194
new
InteractionInput
{ InputType = InputType.Password, Label = "Password", Placeholder = "Enter password", Required = true },
195
new
InteractionInput
{ InputType = InputType.Select, Label = "Dinner", Placeholder = "Select dinner", Required = true, Options =
214
new
InteractionInput
{ InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true },
215
new
InteractionInput
{ InputType = InputType.Checkbox, Label = "Remember me", Placeholder = "What does this do?", Required = true },
17 references to InteractionInput
Aspire.Hosting (14)
ApplicationModel\InteractionService.cs (13)
103
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
109
/// Prompts the user for a single input using a specified <see cref="
InteractionInput
"/>.
119
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
124
return InteractionResultFactory.Cancel<
InteractionInput
>();
135
/// <param name="inputs">A collection of <see cref="
InteractionInput
"/> to prompt for.</param>
141
public async Task<InteractionResult<IReadOnlyList<
InteractionInput
>>> PromptInputsAsync(string title, string? message, IEnumerable<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
155
? InteractionResultFactory.Cancel<IReadOnlyList<
InteractionInput
>>()
156
: InteractionResultFactory.Ok((IReadOnlyList<
InteractionInput
>)completion.State!);
381
/// Specifies the type of input for an <see cref="
InteractionInput
"/>.
575
public InputsInteractionInfo(List<
InteractionInput
> inputs)
580
public List<
InteractionInput
> Inputs { get; }
Dashboard\DashboardServiceData.cs (1)
167
var
modelInput = inputsInfo.Inputs[i];
Stress.AppHost (3)
Program.cs (3)
183
var
input = result.Data!;
191
var inputs = new List<
InteractionInput
>
227
foreach (
var
updatedInput in result.Data!)