49 references to File
Aspire.Hosting (19)
Ats\InteractionExports.cs (1)
214return InteractionInputBuilder.Create(name, InputType.File, options);
Dashboard\DashboardService.cs (3)
244else if (maxFileUploadSize.HasValue && input.InputType == InputType.File) 270Aspire.Hosting.InputType.File => Aspire.DashboardService.Proto.V1.InputType.File, 284Aspire.DashboardService.Proto.V1.InputType.File => InputType.File,
Dashboard\DashboardServiceData.cs (4)
258var files = input.InputType == InputType.File 263else if (input.InputType == InputType.File) 320if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.File) 325if (requestInput.InputType == InputType.File)
IInteractionService.cs (6)
406/// Gets or sets a value indicating whether multiple files can be selected. Only used by <see cref="InputType.File"/> inputs. 411/// Gets or sets the file type filter for <see cref="InputType.File"/> inputs. 419/// Gets or sets the maximum file size in bytes for <see cref="InputType.File"/> inputs. 438/// Gets the files associated with this <see cref="InputType.File"/> input. 453/// Gets the files associated with this <see cref="InputType.File"/> input. 531/// Represents a file selected by the user for an <see cref="InputType.File"/> input.
InteractionService.cs (4)
162var hasFileInputs = inputs.Any(input => input.InputType == InputType.File); 199.Where(input => input.InputType == InputType.File) 518inputsInfo.Inputs.Any(input => input.InputType == InputType.File)) 565if (input.InputType == InputType.File)
Pipelines\PipelineActivityReporter.cs (1)
492if (matchingInput.InputType == InputType.File)
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
179Assert.Equal(InputType.File, input.InputType);
Aspire.Hosting.Tests (24)
Dashboard\DashboardServiceTests.cs (8)
812[InlineData(InputType.File, 0, -1, 0)] // File, no input max, no server limit → 0 813[InlineData(InputType.File, 0, 50, 50)] // File, no input max, 50 MB server limit → 50 MB 814[InlineData(InputType.File, 5, 100, 5)] // File, 5 MB input max below 100 MB server → uses input 815[InlineData(InputType.File, 200, 100, 100)] // File, 200 MB input max exceeds 100 MB server → capped 816[InlineData(InputType.File, 50, -1, 50)] // File, 50 MB input max, no server limit → uses input 1078var fileInput = new InteractionInput { Name = "File", InputType = InputType.File }; 1117var input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true }; 1181var input = new InteractionInput { Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (14)
1352var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1362inputs: [new InputDto("File", "file-content-here", InputType.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]); 1381var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1406var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1472var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1481inputs: [new InputDto("File", string.Empty, InputType.File)]); 1495var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false }; 1504inputs: [new InputDto("File", string.Empty, InputType.File)]); 1523InputType = InputType.File, 1538inputs: [new InputDto("File", "files", InputType.File, files)]); 1561InputType = InputType.File, 1568InputType = InputType.File, 1579InputType = InputType.File, 1592InputType = InputType.File
Publishing\PipelineActivityReporterTests.cs (2)
654InputType = InputType.File, 695InputType = InputType.File
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
101InputType = InputType.File,
Stress.AppHost (4)
InteractionCommands.cs (4)
487new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 514if (updatedInput.InputType == InputType.File && files.Count > 0) 993InputType = InputType.File, 1038InputType = InputType.File,