22 instantiations of InputDto
Aspire.Hosting (5)
Dashboard\DashboardServiceData.cs (3)
216.Select(i => new InputDto(i.Name, i.Value, DashboardService.MapInputType(i.InputType))) 261inputDtos.Add(new InputDto(input.Name, submittedInput.Value, input.InputType, files)); 266inputDtos.Add(new InputDto(input.Name, input.Value ?? string.Empty, input.InputType, files));
Pipelines\PipelineActivityReporter.cs (2)
497return new InputDto(matchingInput.Name, value, matchingInput.InputType, files); 501return 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)
241internal static List<InputDto> CreateInputDtos( 245IReadOnlyList<InputDto> submittedInputs) 247var submittedInputsByName = new Dictionary<string, InputDto>(StringComparers.InteractionInputName); 248foreach (var submittedInput in submittedInputs) 253var inputDtos = new List<InputDto>(inputsInfo.Inputs.Count); 256if (submittedInputsByName.TryGetValue(input.Name, out var submittedInput)) 300public static void ProcessInputs(IServiceProvider serviceProvider, ILogger logger, Interaction.InputsInteractionInfo inputsInfo, List<InputDto> inputDtos, bool dependencyChange, CancellationToken cancellationToken) 306var requestInput = inputDtos[i];
Pipelines\PipelineActivityReporter.cs (2)
416var dtos = new List<InputDto>(); 488private 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)