49 references to File
Aspire.Hosting (19)
Ats\InteractionExports.cs (1)
214
return InteractionInputBuilder.Create(name, InputType.
File
, options);
Dashboard\DashboardService.cs (3)
244
else if (maxFileUploadSize.HasValue && input.InputType == InputType.
File
)
270
Aspire.Hosting.InputType.
File
=> Aspire.DashboardService.Proto.V1.InputType.File,
284
Aspire.DashboardService.Proto.V1.InputType.File => InputType.
File
,
Dashboard\DashboardServiceData.cs (4)
258
var files = input.InputType == InputType.
File
263
else if (input.InputType == InputType.
File
)
320
if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.
File
)
325
if (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)
162
var hasFileInputs = inputs.Any(input => input.InputType == InputType.
File
);
199
.Where(input => input.InputType == InputType.
File
)
518
inputsInfo.Inputs.Any(input => input.InputType == InputType.
File
))
565
if (input.InputType == InputType.
File
)
Pipelines\PipelineActivityReporter.cs (1)
492
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)
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
1078
var fileInput = new InteractionInput { Name = "File", InputType = InputType.
File
};
1117
var input = new InteractionInput { Name = "File", InputType = InputType.
File
, Required = true, AllowMultipleFiles = true };
1181
var input = new InteractionInput { Name = "File", InputType = InputType.
File
};
InteractionServiceTests.cs (14)
1352
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = true };
1362
inputs: [new InputDto("File", "file-content-here", InputType.
File
, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1381
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
};
1406
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
};
1472
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = true };
1481
inputs: [new InputDto("File", string.Empty, InputType.
File
)]);
1495
var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.
File
, Required = false };
1504
inputs: [new InputDto("File", string.Empty, InputType.
File
)]);
1523
InputType = InputType.
File
,
1538
inputs: [new InputDto("File", "files", InputType.
File
, files)]);
1561
InputType = InputType.
File
,
1568
InputType = InputType.
File
,
1579
InputType = InputType.
File
,
1592
InputType = InputType.
File
Publishing\PipelineActivityReporterTests.cs (2)
654
InputType = InputType.
File
,
695
InputType = InputType.
File
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
101
InputType = InputType.
File
,
Stress.AppHost (4)
InteractionCommands.cs (4)
487
new InteractionInput { Name = "Receipt", InputType = InputType.
File
, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
514
if (updatedInput.InputType == InputType.
File
&& files.Count > 0)
993
InputType = InputType.
File
,
1038
InputType = InputType.
File
,