22 instantiations of InputDto
Aspire.Hosting (5)
Dashboard\DashboardServiceData.cs (3)
216
.Select(i => new
InputDto
(i.Name, i.Value, DashboardService.MapInputType(i.InputType)))
261
inputDtos.Add(new
InputDto
(input.Name, submittedInput.Value, input.InputType, files));
266
inputDtos.Add(new
InputDto
(input.Name, input.Value ?? string.Empty, input.InputType, files));
Pipelines\PipelineActivityReporter.cs (2)
497
return new
InputDto
(matchingInput.Name, value, matchingInput.InputType, files);
501
return new
InputDto
(matchingInput.Name, value, matchingInput.InputType);
Aspire.Hosting.Tests (17)
InteractionServiceTests.cs (17)
384
inputs: [new
InputDto
("Value", string.Empty, InputType.Text)]);
408
inputs: [new
InputDto
("Value", string.Empty, InputType.Text)]);
431
inputs: [new
InputDto
("Value", "not-in-options", InputType.Choice)]);
454
inputs: [new
InputDto
("Value", "not-in-options", InputType.Choice)]);
475
inputs: [new
InputDto
("Value", "one", InputType.Number)]);
498
inputs: [new
InputDto
("Value", "maybe", InputType.Number)]);
533
inputs: [new
InputDto
("Value", newValue, InputType.Text)]);
870
new
InputDto
("Username", "testuser", InputType.Text),
871
new
InputDto
("Password", "testpass", InputType.SecretText)
994
inputs: [new
InputDto
("Username", "testuser", InputType.Text)]).DefaultTimeout();
1052
new
InputDto
("Email", "test@example.com", InputType.Text),
1053
new
InputDto
("Age", "25", InputType.Number)
1362
inputs: [new
InputDto
("File", "file-content-here", InputType.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1433
inputs: [new
InputDto
("Text", "value", InputType.Text)]);
1481
inputs: [new
InputDto
("File", string.Empty, InputType.File)]);
1504
inputs: [new
InputDto
("File", string.Empty, InputType.File)]);
1538
inputs: [new
InputDto
("File", "files", InputType.File, files)]);
11 references to InputDto
Aspire.Hosting (10)
Dashboard\DashboardServiceData.cs (8)
241
internal static List<
InputDto
> CreateInputDtos(
245
IReadOnlyList<
InputDto
> submittedInputs)
247
var submittedInputsByName = new Dictionary<string,
InputDto
>(StringComparers.InteractionInputName);
248
foreach (
var
submittedInput in submittedInputs)
253
var inputDtos = new List<
InputDto
>(inputsInfo.Inputs.Count);
256
if (submittedInputsByName.TryGetValue(input.Name, out
var
submittedInput))
300
public static void ProcessInputs(IServiceProvider serviceProvider, ILogger logger, Interaction.InputsInteractionInfo inputsInfo, List<
InputDto
> inputDtos, bool dependencyChange, CancellationToken cancellationToken)
306
var
requestInput = inputDtos[i];
Pipelines\PipelineActivityReporter.cs (2)
416
var dtos = new List<
InputDto
>();
488
private
InputDto
CreateInputDto(int interactionId, InteractionInput matchingInput, PublishingPromptInputAnswer responseAnswer)
Aspire.Hosting.Tests (1)
InteractionServiceTests.cs (1)
1309
private static async Task CompleteInteractionAsync(InteractionService interactionService, int interactionId, InteractionCompletionState state, List<DashboardServiceData.
InputDto
>? inputs = null)