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