51 references to File
Aspire.Hosting (19)
Ats\InteractionExports.cs (1)
214
return InteractionInputBuilder.Create(name, InputType.
File
, options);
Dashboard\DashboardService.cs (3)
268
else if (maxFileUploadSize.HasValue && input.InputType == InputType.
File
)
298
Aspire.Hosting.InputType.
File
=> Aspire.DashboardService.Proto.V1.InputType.File,
312
Aspire.DashboardService.Proto.V1.InputType.File => InputType.
File
,
Dashboard\DashboardServiceData.cs (4)
266
var files = input.InputType == InputType.
File
271
else if (input.InputType == InputType.
File
)
328
if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.
File
)
333
if (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)
173
var hasFileInputs = inputs.Any(input => input.InputType == InputType.
File
);
210
.Where(input => input.InputType == InputType.
File
)
568
inputsInfo.Inputs.Any(input => input.InputType == InputType.
File
))
615
if (input.InputType == InputType.
File
)
Pipelines\PipelineActivityReporter.cs (1)
490
if (matchingInput.InputType == InputType.
File
)
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
179
Assert.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
1240
var fileInput = new InteractionInput { Name = "File", InputType = InputType.
File
};
1280
var input = new InteractionInput { Name = "File", InputType = InputType.
File
, Required = true, AllowMultipleFiles = true };
1345
var input = new InteractionInput { Name = "File", InputType = InputType.
File
};
InteractionServiceTests.cs (14)
1457
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = true };
1467
inputs: [new InputDto("File", "file-content-here", InputType.
File
, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1486
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
};
1511
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
};
1577
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = true };
1586
inputs: [new InputDto("File", string.Empty, InputType.
File
)]);
1600
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = false };
1609
inputs: [new InputDto("File", string.Empty, InputType.
File
)]);
1628
InputType = InputType.
File
,
1643
inputs: [new InputDto("File", "files", InputType.
File
, files)]);
1666
InputType = InputType.
File
,
1673
InputType = InputType.
File
,
1684
InputType = InputType.
File
,
1697
InputType = InputType.
File
Publishing\PipelineActivityReporterTests.cs (2)
652
InputType = InputType.
File
,
693
InputType = InputType.
File
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
99
InputType = InputType.
File
,
Stress.AppHost (5)
InteractionCommands.cs (5)
360
InputType = InputType.
File
,
584
new InteractionInput { Name = "Receipt", InputType = InputType.
File
, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
611
if (updatedInput.InputType == InputType.
File
&& files.Count > 0)
1090
InputType = InputType.
File
,
1135
InputType = InputType.
File
,
TestShop.AppHost (1)
AppHost.cs (1)
82
InputType = InputType.
File
,