278 writes to InputType
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
169InputType = Secret ? InputType.SecretText : InputType.Text,
ApplicationModel\ResourceCommandService.cs (1)
806InputType = input.InputType,
Ats\InteractionExports.cs (2)
262InputType = input.InputType, 311InputType = inputType,
InteractionService.cs (1)
140return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (4)
239InputType = InputType.Boolean, 279InputType = InputType.Boolean, 385InputType = InputType.Boolean, 417InputType = InputType.Boolean,
ParameterResourceBuilderExtensions.cs (1)
267InputType = options.InputType ?? (parameter.Secret ? InputType.SecretText : InputType.Text),
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
278InputType = InputType.Choice, 299InputType = InputType.Choice, 320InputType = InputType.Choice, 338InputType = InputType.Choice, 360InputType = InputType.Choice, 378InputType = InputType.Boolean, 681InputType = useChoiceInput ? InputType.Choice : InputType.Text,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
161InputType = InputType.Choice, 187InputType = InputType.SecretText, 260InputType = InputType.Choice, 286InputType = InputType.SecretText, 354InputType = InputType.Choice, 452InputType = InputType.Choice,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
338InputType = InputType.Choice, 364InputType = allowSubscriptionEdit ? InputType.Choice : InputType.Text, 399InputType = useTextResourceGroupInput ? InputType.Text : InputType.Choice, 440InputType = InputType.Choice,
Aspire.Hosting.Azure.Tests (3)
AzureDeployerTests.cs (1)
812InputType = InputType.Number,
AzureEnvironmentResourceExtensionsTests.cs (2)
4988InputType = InputType.Text, 5001InputType = input.InputType,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
49InputType = InputType.Choice, 64InputType = InputType.Choice, 84InputType = InputType.Choice, 108InputType = InputType.Choice, 132InputType = InputType.Boolean,
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (5)
1737new InteractionInput { Name = "scope", InputType = InputType.Choice, Value = scope }, 1738new InteractionInput { Name = "browser", InputType = InputType.Choice, Value = browser }, 1739new InteractionInput { Name = "userDataMode", InputType = InputType.Choice, Value = userDataMode }, 1740new InteractionInput { Name = "profile", InputType = InputType.Choice, Value = profile }, 1741new InteractionInput { Name = "saveToUserSecrets", InputType = InputType.Boolean, Value = saveToUserSecrets },
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
49InputType = InputType.Choice, 64InputType = InputType.Choice, 84InputType = InputType.Choice, 108InputType = InputType.Choice, 132InputType = InputType.Boolean,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
756InputType = InputType.Text,
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
329InputType = InputType.Text,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
121InputType = InputType.Text,
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
113InputType = InputType.Text, 178InputType = InputType.Text,
PromptAgentTests.cs (1)
110InputType = InputType.Text,
Aspire.Hosting.Tests (138)
AddParameterTests.cs (5)
406InputType = InputType.Number, 499InputType = InputType.Number, 526InputType = InputType.Number, 553InputType = InputType.Number, 594InputType = InputType.Number,
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
218InputType = InputType.Text, 2268InputType = InputType.Text 2273InputType = InputType.Number 2278InputType = InputType.Boolean 2333InputType = InputType.Text 2384InputType = InputType.Text 2389InputType = InputType.Number 2394InputType = InputType.Boolean 2441InputType = InputType.Choice, 2451InputType = InputType.Choice, 2515InputType = InputType.Choice, 2525InputType = InputType.Choice, 2590InputType = InputType.Text 2638InputType = InputType.Text
Dashboard\DashboardServiceTests.cs (13)
175InputType = InputType.Text, 300InputType = InputType.Text 305InputType = InputType.Number 363InputType = InputType.Text, 420InputType = InputType.Text 564new InteractionInput { Name = "Input", InputType = InputType.Text }); 612new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 822? new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 } 823: new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType }; 1078var fileInput = new InteractionInput { Name = "File", InputType = InputType.File }; 1079var textInput = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1117var input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true }; 1181var input = new InteractionInput { Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (54)
362var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 399var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 422var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 445var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 466var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 489var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 522var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 558InputType = InputType.Text, 578InputType = InputType.Text, 596InputType = InputType.Text, 631InputType = InputType.Text, 643new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 644new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 645new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 683new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 684new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 685new InteractionInput { Name = "Age", InputType = InputType.Number } 717new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 718new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 719new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 740new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 741new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 755new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 756new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 770new InteractionInput { Name = "Input1", InputType = InputType.Text }, 771new InteractionInput { Name = "Input2", InputType = InputType.Text }, 772new InteractionInput { Name = "Input3", InputType = InputType.Text } 803new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 804new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 805new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 840new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 856new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 857new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 913InputType = InputType.Choice, 963new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 967InputType = InputType.Choice, 1018new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 1019new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1074InputType = InputType.Choice, 1086new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1107InputType = InputType.Choice, 1119new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1352var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1381var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1406var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1425var input = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1449var input = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1472var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1495var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false }; 1523InputType = InputType.File, 1561InputType = InputType.File, 1568InputType = InputType.File, 1579InputType = InputType.File, 1592InputType = InputType.File
Orchestrator\ParameterProcessorTests.cs (3)
1239InputType = InputType.Text, 1245InputType = InputType.Boolean, 1257InputType = InputType.Boolean,
Publishing\PipelineActivityReporterTests.cs (2)
654InputType = InputType.File, 695InputType = InputType.File
ResourceCommandServiceTests.cs (33)
530InputType = InputType.Text 535InputType = InputType.Number 545InputType = InputType.Text, 551InputType = InputType.Number, 588InputType = InputType.Text, 629InputType = InputType.Text, 669InputType = InputType.SecretText, 680InputType = InputType.SecretText, 711InputType = InputType.Text 716InputType = InputType.Number, 722InputType = InputType.Boolean, 756InputType = InputType.Text 787InputType = InputType.Text 818InputType = InputType.Boolean, 850InputType = InputType.Choice, 891InputType = InputType.Boolean, 954InputType = InputType.Text, 996InputType = InputType.Choice, 1003InputType = InputType.Choice, 1069InputType = InputType.Choice, 1076InputType = InputType.Choice, 1094InputType = InputType.Choice, 1161InputType = InputType.Choice, 1168InputType = InputType.Choice, 1231InputType = InputType.Text, 1283InputType = InputType.Text, 1338InputType = InputType.Boolean, 1345InputType = InputType.Number, 1410InputType = InputType.Text, 1521InputType = InputType.Text, 1527InputType = InputType.Text, 1538InputType = InputType.Text, 1578InputType = InputType.Text,
WithHttpCommandTests.cs (5)
272InputType = InputType.Text, 365InputType = InputType.Text, 382InputType = InputType.Text, 754InputType = InputType.Text, 783InputType = InputType.Text,
WithProcessCommandTests.cs (9)
66InputType = InputType.Text 171InputType = InputType.Text 185InputType = InputType.Text, 243InputType = InputType.Text 264InputType = InputType.Text, 366InputType = InputType.Text 379InputType = InputType.Text, 423InputType = InputType.Text 1433InputType = InputType.Text,
ExternalServices.AppHost (1)
AppHost.cs (1)
13InputType = InputType.Text,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50InputType = InputType.Number,
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
50InputType = InputType.Text, 58InputType = InputType.Text, 66InputType = InputType.Choice, 79InputType = InputType.Choice, 101InputType = InputType.File, 152InputType = InputType.Text, 175InputType = InputType.SecretText, 190InputType = InputType.Choice, 211InputType = InputType.Boolean, 225InputType = InputType.Number, 240InputType = InputType.Choice,
Stress.AppHost (76)
CommandResources.cs (47)
149InputType = InputType.Text, 157InputType = InputType.Number, 164InputType = InputType.Boolean 207InputType = InputType.Text, 217InputType = InputType.Number, 225InputType = InputType.Boolean, 233InputType = InputType.Choice, 247InputType = InputType.SecretText, 302InputType = InputType.Text, 312InputType = InputType.Choice, 326InputType = InputType.Number, 334InputType = InputType.Boolean, 393InputType = InputType.Choice, 408InputType = InputType.Choice, 451InputType = InputType.Number, 460InputType = InputType.Choice, 553InputType = InputType.Choice, 581InputType = InputType.Text, 655InputType = InputType.Text, 664InputType = InputType.Text, 710InputType = InputType.Choice, 724InputType = InputType.Number, 756InputType = InputType.Choice, 790InputType = InputType.Text, 799InputType = InputType.Text, 828InputType = InputType.Text, 837InputType = InputType.Text, 846InputType = InputType.Text, 875InputType = InputType.Text, 885InputType = InputType.Text, 895InputType = InputType.Text, 985InputType = InputType.Boolean, 993InputType = InputType.Number, 1002InputType = InputType.Number, 1012InputType = InputType.Boolean, 1020InputType = InputType.Number, 1029InputType = InputType.Boolean, 1037InputType = InputType.Number, 1046InputType = InputType.Boolean, 1054InputType = InputType.Number, 1064InputType = InputType.Boolean, 1072InputType = InputType.Number, 1081InputType = InputType.Number, 1311InputType = InputType.Text, 1321InputType = InputType.Number, 1330InputType = InputType.Boolean, 1343InputType = InputType.Text,
InteractionCommands.cs (29)
59var inputNoMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." }; 60var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true }; 72var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, **neque id** efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.", EnableDescriptionMarkdown = true }; 76InputType = InputType.Choice, 87InputType = InputType.Choice, 146InputType = InputType.Choice, 159InputType = InputType.Choice, 198InputType = InputType.Choice, 226InputType = InputType.Choice, 236var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 239new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 240new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 244new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 284InputType = InputType.Choice, 296InputType = InputType.Choice, 344InputType = InputType.Choice, 354InputType = InputType.Choice, 365InputType = InputType.Text, 423InputType = InputType.Choice, 435InputType = InputType.Choice, 453InputType = InputType.Choice, 487new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 573InputType = InputType.Text, 606InputType = InputType.Choice, 629InputType = InputType.Choice, 668InputType = InputType.Choice, 699InputType = InputType.Choice, 993InputType = InputType.File, 1038InputType = InputType.File,
71 references to InputType
Aspire.Hosting (21)
ApplicationModel\ResourceCommandService.cs (3)
588var value = argument.Value = argument.InputType == InputType.SecretText 617switch (argument.InputType) 806InputType = input.InputType,
Ats\InteractionExports.cs (1)
262InputType = input.InputType,
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1374InputType = input.InputType.ToString(),
Dashboard\DashboardService.cs (2)
201InputType = MapInputType(input.InputType), 244else if (maxFileUploadSize.HasValue && input.InputType == InputType.File)
Dashboard\DashboardServiceData.cs (4)
258var files = input.InputType == InputType.File 261inputDtos.Add(new InputDto(input.Name, submittedInput.Value, input.InputType, files)); 263else if (input.InputType == InputType.File) 266inputDtos.Add(new InputDto(input.Name, input.Value ?? string.Empty, input.InputType, files));
InteractionService.cs (6)
162var hasFileInputs = inputs.Any(input => input.InputType == InputType.File); 199.Where(input => input.InputType == InputType.File) 217if (input.InputType == InputType.Choice) 518inputsInfo.Inputs.Any(input => input.InputType == InputType.File)) 565if (input.InputType == InputType.File) 590switch (input.InputType)
Pipelines\PipelineActivityReporter.cs (4)
343InputType = input.InputType.ToString(), 492if (matchingInput.InputType == InputType.File) 497return new InputDto(matchingInput.Name, value, matchingInput.InputType, files); 501return new InputDto(matchingInput.Name, value, matchingInput.InputType);
Aspire.Hosting.Azure.Tests (26)
AzureDeployerTests.cs (8)
64Assert.Equal(InputType.Choice, input.InputType); 81Assert.Equal(InputType.Choice, input.InputType); 99Assert.Equal(InputType.Choice, input.InputType); 117Assert.Equal(InputType.Choice, input.InputType); 762Assert.Equal(InputType.Text, input.InputType); 835Assert.Equal(InputType.Number, input.InputType); 1025Assert.Equal(InputType.Text, input.InputType); 1070Assert.Equal(InputType.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (7)
129Assert.Equal(InputType.Choice, input.InputType); 139Assert.Equal(InputType.Choice, input.InputType); 150Assert.Equal(InputType.Choice, input.InputType); 161Assert.Equal(InputType.Choice, input.InputType); 671Assert.Equal(InputType.Boolean, confirmDeleteArgument.InputType); 2969Assert.Equal(InputType.Choice, locationInput.InputType); 5001InputType = input.InputType,
ProvisioningContextProviderTests.cs (11)
356Assert.Equal(InputType.Choice, input.InputType); 363Assert.Equal(InputType.Choice, input.InputType); 370Assert.Equal(InputType.Text, input.InputType); 377Assert.Equal(InputType.Choice, input.InputType); 509Assert.Equal(InputType.Choice, input.InputType); 516Assert.Equal(InputType.Choice, input.InputType); 524Assert.Equal(InputType.Text, input.InputType); 531Assert.Equal(InputType.Choice, input.InputType); 649Assert.Equal(InputType.Choice, subscriptionInput.InputType); 796Assert.Equal(InputType.Choice, subscriptionInput.InputType); 842Assert.Equal(InputType.Text, resourceGroupInput.InputType);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
89Assert.Equal(InputType.Text, argument.InputType);
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
179Assert.Equal(InputType.File, input.InputType);
Aspire.Hosting.Tests (18)
AddParameterTests.cs (8)
429Assert.Equal(InputType.Text, input.InputType); 482Assert.Equal(InputType.SecretText, input.InputType); 510Assert.Equal(InputType.Number, input.InputType); 538Assert.Equal(InputType.Number, input.InputType); 604Assert.Equal(InputType.Number, input.InputType); 620[nameof(InteractionInput.InputType)] = InputType.Number, 636Assert.Equal(InputType.Number, input.InputType); 666Assert.Equal(InputType.SecretText, input.InputType);
InteractionServiceTests.cs (1)
565Assert.Equal(InputType.Text, input.InputType);
Orchestrator\ParameterProcessorTests.cs (9)
221Assert.Equal(InputType.Text, input.InputType); 227Assert.Equal(InputType.Text, input.InputType); 233Assert.Equal(InputType.SecretText, input.InputType); 239Assert.Equal(InputType.Boolean, input.InputType); 460Assert.Equal(InputType.Text, param1Input.InputType); 466Assert.Equal(InputType.Text, param2Input.InputType); 503Assert.Equal(InputType.SecretText, secretInput.InputType); 539Assert.Equal(InputType.Boolean, saveCheckbox.InputType); 578Assert.Equal(InputType.Boolean, saveCheckbox.InputType);
Stress.AppHost (4)
CommandResources.cs (3)
350.Where(i => i.InputType is InputType.Text or InputType.SecretText or InputType.Choice) 352NumberCount = inputsWithValues.Count(i => i.InputType == InputType.Number), 353BooleanCount = inputsWithValues.Count(i => i.InputType == InputType.Boolean),
InteractionCommands.cs (1)
514if (updatedInput.InputType == InputType.File && files.Count > 0)