22 instantiations of InputDto
Aspire.Hosting (5)
Dashboard\DashboardServiceData.cs (3)
224
.Select(i => new
InputDto
(i.Name, i.Value, DashboardService.MapInputType(i.InputType)))
269
inputDtos.Add(new
InputDto
(input.Name, submittedInput.Value, input.InputType, files));
274
inputDtos.Add(new
InputDto
(input.Name, input.Value ?? string.Empty, input.InputType, files));
Pipelines\PipelineActivityReporter.cs (2)
495
return new
InputDto
(matchingInput.Name, value, matchingInput.InputType, files);
499
return new
InputDto
(matchingInput.Name, value, matchingInput.InputType);
Aspire.Hosting.Tests (17)
InteractionServiceTests.cs (17)
488
inputs: [new
InputDto
("Value", string.Empty, InputType.Text)]);
512
inputs: [new
InputDto
("Value", string.Empty, InputType.Text)]);
535
inputs: [new
InputDto
("Value", "not-in-options", InputType.Choice)]);
558
inputs: [new
InputDto
("Value", "not-in-options", InputType.Choice)]);
579
inputs: [new
InputDto
("Value", "one", InputType.Number)]);
602
inputs: [new
InputDto
("Value", "maybe", InputType.Number)]);
637
inputs: [new
InputDto
("Value", newValue, InputType.Text)]);
974
new
InputDto
("Username", "testuser", InputType.Text),
975
new
InputDto
("Password", "testpass", InputType.SecretText)
1098
inputs: [new
InputDto
("Username", "testuser", InputType.Text)]).DefaultTimeout();
1156
new
InputDto
("Email", "test@example.com", InputType.Text),
1157
new
InputDto
("Age", "25", InputType.Number)
1467
inputs: [new
InputDto
("File", "file-content-here", InputType.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1538
inputs: [new
InputDto
("Text", "value", InputType.Text)]);
1586
inputs: [new
InputDto
("File", string.Empty, InputType.File)]);
1609
inputs: [new
InputDto
("File", string.Empty, InputType.File)]);
1643
inputs: [new
InputDto
("File", "files", InputType.File, files)]);
11 references to InputDto
Aspire.Hosting (10)
Dashboard\DashboardServiceData.cs (8)
249
internal static List<
InputDto
> CreateInputDtos(
253
IReadOnlyList<
InputDto
> submittedInputs)
255
var submittedInputsByName = new Dictionary<string,
InputDto
>(StringComparers.InteractionInputName);
256
foreach (
var
submittedInput in submittedInputs)
261
var inputDtos = new List<
InputDto
>(inputsInfo.Inputs.Count);
264
if (submittedInputsByName.TryGetValue(input.Name, out
var
submittedInput))
308
public static void ProcessInputs(IServiceProvider serviceProvider, ILogger logger, Interaction.InputsInteractionInfo inputsInfo, List<
InputDto
> inputDtos, bool dependencyChange, CancellationToken cancellationToken)
314
var
requestInput = inputDtos[i];
Pipelines\PipelineActivityReporter.cs (2)
414
var dtos = new List<
InputDto
>();
486
private
InputDto
CreateInputDto(int interactionId, InteractionInput matchingInput, PublishingPromptInputAnswer responseAnswer)
Aspire.Hosting.Tests (1)
InteractionServiceTests.cs (1)
1413
private static async Task CompleteInteractionAsync(InteractionService interactionService, int interactionId, InteractionCompletionState state, List<DashboardServiceData.
InputDto
>? inputs = null)