51 references to File
Aspire.Hosting (19)
Ats\InteractionExports.cs (1)
214return InteractionInputBuilder.Create(name, InputType.File, options);
Dashboard\DashboardService.cs (3)
268else if (maxFileUploadSize.HasValue && input.InputType == InputType.File) 298Aspire.Hosting.InputType.File => Aspire.DashboardService.Proto.V1.InputType.File, 312Aspire.DashboardService.Proto.V1.InputType.File => InputType.File,
Dashboard\DashboardServiceData.cs (4)
266var files = input.InputType == InputType.File 271else if (input.InputType == InputType.File) 328if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.File) 333if (requestInput.InputType == InputType.File)
IInteractionService.cs (6)
479/// Gets or sets a value indicating whether multiple files can be selected. Only used by <see cref="InputType.File"/> inputs. 484/// Gets or sets the file type filter for <see cref="InputType.File"/> inputs. 492/// Gets or sets the maximum file size in bytes for <see cref="InputType.File"/> inputs. 511/// Gets the files associated with this <see cref="InputType.File"/> input. 526/// Gets the files associated with this <see cref="InputType.File"/> input. 604/// Represents a file selected by the user for an <see cref="InputType.File"/> input.
InteractionService.cs (4)
173var hasFileInputs = inputs.Any(input => input.InputType == InputType.File); 210.Where(input => input.InputType == InputType.File) 568inputsInfo.Inputs.Any(input => input.InputType == InputType.File)) 615if (input.InputType == InputType.File)
Pipelines\PipelineActivityReporter.cs (1)
490if (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)
973[InlineData(InputType.File, 0, -1, 0)] // File, no input max, no server limit → 0 974[InlineData(InputType.File, 0, 50, 50)] // File, no input max, 50 MB server limit → 50 MB 975[InlineData(InputType.File, 5, 100, 5)] // File, 5 MB input max below 100 MB server → uses input 976[InlineData(InputType.File, 200, 100, 100)] // File, 200 MB input max exceeds 100 MB server → capped 977[InlineData(InputType.File, 50, -1, 50)] // File, 50 MB input max, no server limit → uses input 1240var fileInput = new InteractionInput { Name = "File", InputType = InputType.File }; 1280var input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true }; 1345var input = new InteractionInput { Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (14)
1457var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1467inputs: [new InputDto("File", "file-content-here", InputType.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]); 1486var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1511var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1577var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1586inputs: [new InputDto("File", string.Empty, InputType.File)]); 1600var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false }; 1609inputs: [new InputDto("File", string.Empty, InputType.File)]); 1628InputType = InputType.File, 1643inputs: [new InputDto("File", "files", InputType.File, files)]); 1666InputType = InputType.File, 1673InputType = InputType.File, 1684InputType = InputType.File, 1697InputType = InputType.File
Publishing\PipelineActivityReporterTests.cs (2)
652InputType = InputType.File, 693InputType = InputType.File
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
99InputType = InputType.File,
Stress.AppHost (5)
InteractionCommands.cs (5)
360InputType = InputType.File, 584new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 611if (updatedInput.InputType == InputType.File && files.Count > 0) 1090InputType = InputType.File, 1135InputType = InputType.File,
TestShop.AppHost (1)
AppHost.cs (1)
82InputType = InputType.File,