22 instantiations of InputDto
Aspire.Hosting (5)
Dashboard\DashboardServiceData.cs (3)
223.Select(i => new InputDto(i.Name, i.Value, DashboardService.MapInputType(i.InputType))) 268inputDtos.Add(new InputDto(input.Name, submittedInput.Value, input.InputType, files)); 273inputDtos.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)
384inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 408inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 431inputs: [new InputDto("Value", "not-in-options", InputType.Choice)]); 454inputs: [new InputDto("Value", "not-in-options", InputType.Choice)]); 475inputs: [new InputDto("Value", "one", InputType.Number)]); 498inputs: [new InputDto("Value", "maybe", InputType.Number)]); 533inputs: [new InputDto("Value", newValue, InputType.Text)]); 870new InputDto("Username", "testuser", InputType.Text), 871new InputDto("Password", "testpass", InputType.SecretText) 994inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout(); 1052new InputDto("Email", "test@example.com", InputType.Text), 1053new InputDto("Age", "25", InputType.Number) 1362inputs: [new InputDto("File", "file-content-here", InputType.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]); 1433inputs: [new InputDto("Text", "value", InputType.Text)]); 1481inputs: [new InputDto("File", string.Empty, InputType.File)]); 1504inputs: [new InputDto("File", string.Empty, InputType.File)]); 1538inputs: [new InputDto("File", "files", InputType.File, files)]);
11 references to InputDto
Aspire.Hosting (10)
Dashboard\DashboardServiceData.cs (8)
248internal static List<InputDto> CreateInputDtos( 252IReadOnlyList<InputDto> submittedInputs) 254var submittedInputsByName = new Dictionary<string, InputDto>(StringComparers.InteractionInputName); 255foreach (var submittedInput in submittedInputs) 260var inputDtos = new List<InputDto>(inputsInfo.Inputs.Count); 263if (submittedInputsByName.TryGetValue(input.Name, out var submittedInput)) 307public static void ProcessInputs(IServiceProvider serviceProvider, ILogger logger, Interaction.InputsInteractionInfo inputsInfo, List<InputDto> inputDtos, bool dependencyChange, CancellationToken cancellationToken) 313var 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)
1309private static async Task CompleteInteractionAsync(InteractionService interactionService, int interactionId, InteractionCompletionState state, List<DashboardServiceData.InputDto>? inputs = null)