289 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)
144return 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)
236InputType = InputType.Boolean, 276InputType = InputType.Boolean, 382InputType = InputType.Boolean, 414InputType = InputType.Boolean,
ParameterResourceBuilderExtensions.cs (1)
265InputType = options.InputType ?? (parameter.Secret ? InputType.SecretText : InputType.Text),
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
275InputType = InputType.Choice, 296InputType = InputType.Choice, 317InputType = InputType.Choice, 335InputType = InputType.Choice, 357InputType = InputType.Choice, 375InputType = InputType.Boolean, 678InputType = useChoiceInput ? InputType.Choice : InputType.Text,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
158InputType = InputType.Choice, 184InputType = InputType.SecretText, 257InputType = InputType.Choice, 283InputType = InputType.SecretText, 351InputType = InputType.Choice, 449InputType = InputType.Choice,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
336InputType = InputType.Choice, 362InputType = allowSubscriptionEdit ? InputType.Choice : InputType.Text, 397InputType = useTextResourceGroupInput ? InputType.Text : InputType.Choice, 438InputType = InputType.Choice,
Aspire.Hosting.Azure.Tests (3)
AzureDeployerTests.cs (1)
871InputType = InputType.Number,
AzureEnvironmentResourceExtensionsTests.cs (2)
4997InputType = InputType.Text, 5010InputType = input.InputType,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
48InputType = InputType.Choice, 63InputType = InputType.Choice, 83InputType = InputType.Choice, 107InputType = InputType.Choice, 131InputType = InputType.Boolean,
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (5)
1736new InteractionInput { Name = "scope", InputType = InputType.Choice, Value = scope }, 1737new InteractionInput { Name = "browser", InputType = InputType.Choice, Value = browser }, 1738new InteractionInput { Name = "userDataMode", InputType = InputType.Choice, Value = userDataMode }, 1739new InteractionInput { Name = "profile", InputType = InputType.Choice, Value = profile }, 1740new InteractionInput { Name = "saveToUserSecrets", InputType = InputType.Boolean, Value = saveToUserSecrets },
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
48InputType = InputType.Choice, 63InputType = InputType.Choice, 83InputType = InputType.Choice, 107InputType = InputType.Choice, 131InputType = InputType.Boolean,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
842InputType = InputType.Text,
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
331InputType = InputType.Text,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
121InputType = InputType.Text,
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
114InputType = InputType.Text, 179InputType = InputType.Text,
PromptAgentTests.cs (1)
108InputType = InputType.Text,
Aspire.Hosting.Tests (141)
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)
180InputType = InputType.Text, 305InputType = InputType.Text 310InputType = InputType.Number 368InputType = InputType.Text, 425InputType = InputType.Text 569new InteractionInput { Name = "Input", InputType = InputType.Text }); 731new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 941? new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 } 942: new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType }; 1197var fileInput = new InteractionInput { Name = "File", InputType = InputType.File }; 1198var textInput = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1236var input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true }; 1300var 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)
1237InputType = InputType.Text, 1243InputType = InputType.Boolean, 1255InputType = InputType.Boolean,
Publishing\PipelineActivityReporterTests.cs (2)
652InputType = InputType.File, 693InputType = InputType.File
ResourceCommandServiceTests.cs (35)
531InputType = InputType.Text 536InputType = InputType.Number 546InputType = InputType.Text, 552InputType = InputType.Number, 589InputType = InputType.Text, 630InputType = InputType.Text, 670InputType = InputType.SecretText, 681InputType = InputType.SecretText, 712InputType = InputType.Text 717InputType = InputType.Number, 723InputType = InputType.Boolean, 757InputType = InputType.Text 788InputType = InputType.Text 819InputType = InputType.Boolean, 851InputType = InputType.Choice, 892InputType = InputType.Boolean, 955InputType = InputType.Text, 997InputType = InputType.Choice, 1004InputType = InputType.Choice, 1070InputType = InputType.Choice, 1077InputType = InputType.Choice, 1095InputType = InputType.Choice, 1162InputType = InputType.Choice, 1169InputType = InputType.Choice, 1232InputType = InputType.Text, 1284InputType = InputType.Text, 1333InputType = InputType.Text 1338InputType = InputType.Text, 1441InputType = InputType.Boolean, 1448InputType = InputType.Number, 1513InputType = InputType.Text, 1624InputType = InputType.Text, 1630InputType = InputType.Text, 1641InputType = InputType.Text, 1681InputType = InputType.Text,
Terminals\InteractionServiceTerminalTests.cs (1)
118var input = new InteractionInput { Name = "text", InputType = InputType.Text, Required = true, Value = "value" };
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)
48InputType = InputType.Text, 56InputType = InputType.Text, 64InputType = InputType.Choice, 77InputType = InputType.Choice, 99InputType = InputType.File, 150InputType = InputType.Text, 173InputType = InputType.SecretText, 188InputType = InputType.Choice, 209InputType = InputType.Boolean, 223InputType = InputType.Number, 238InputType = InputType.Choice,
Stress.AppHost (83)
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, 1062InputType = InputType.Boolean, 1070InputType = InputType.Number, 1079InputType = InputType.Number, 1089InputType = InputType.Boolean, 1097InputType = InputType.Number, 1106InputType = InputType.Boolean, 1114InputType = InputType.Number, 1123InputType = InputType.Boolean, 1131InputType = InputType.Number, 1141InputType = InputType.Boolean, 1149InputType = InputType.Number, 1158InputType = InputType.Number, 1388InputType = InputType.Text, 1398InputType = InputType.Number, 1407InputType = InputType.Boolean, 1420InputType = InputType.Text,
InteractionCommands.cs (36)
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", Description = "The name for the dinner reservation. Maximum 50 characters.", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 240new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Description = "The password for the reservation. Maximum 20 characters.", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 244new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 286InputType = InputType.Text, 295InputType = InputType.SecretText, 304InputType = InputType.Choice, 315InputType = InputType.Choice, 326InputType = InputType.Number, 335InputType = InputType.Boolean, 344InputType = InputType.File, 365InputType = InputType.Choice, 377InputType = InputType.Choice, 425InputType = InputType.Choice, 435InputType = InputType.Choice, 446InputType = InputType.Text, 504InputType = InputType.Choice, 516InputType = InputType.Choice, 534InputType = InputType.Choice, 568new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 654InputType = InputType.Text, 687InputType = InputType.Choice, 710InputType = InputType.Choice, 749InputType = InputType.Choice, 780InputType = InputType.Choice, 1074InputType = InputType.File, 1119InputType = InputType.File,
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
301InputType = InputType.Number,
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)
1396InputType = input.InputType.ToString(),
Dashboard\DashboardService.cs (2)
224InputType = MapInputType(input.InputType), 267else if (maxFileUploadSize.HasValue && input.InputType == InputType.File)
Dashboard\DashboardServiceData.cs (4)
265var files = input.InputType == InputType.File 268inputDtos.Add(new InputDto(input.Name, submittedInput.Value, input.InputType, files)); 270else if (input.InputType == InputType.File) 273inputDtos.Add(new InputDto(input.Name, input.Value ?? string.Empty, input.InputType, files));
InteractionService.cs (6)
166var hasFileInputs = inputs.Any(input => input.InputType == InputType.File); 203.Where(input => input.InputType == InputType.File) 221if (input.InputType == InputType.Choice) 561inputsInfo.Inputs.Any(input => input.InputType == InputType.File)) 608if (input.InputType == InputType.File) 633switch (input.InputType)
Pipelines\PipelineActivityReporter.cs (4)
341InputType = input.InputType.ToString(), 490if (matchingInput.InputType == InputType.File) 495return new InputDto(matchingInput.Name, value, matchingInput.InputType, files); 499return new InputDto(matchingInput.Name, value, matchingInput.InputType);
Aspire.Hosting.Azure.Tests (26)
AzureDeployerTests.cs (8)
61Assert.Equal(InputType.Choice, input.InputType); 78Assert.Equal(InputType.Choice, input.InputType); 96Assert.Equal(InputType.Choice, input.InputType); 114Assert.Equal(InputType.Choice, input.InputType); 821Assert.Equal(InputType.Text, input.InputType); 894Assert.Equal(InputType.Number, input.InputType); 1084Assert.Equal(InputType.Text, input.InputType); 1129Assert.Equal(InputType.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (7)
126Assert.Equal(InputType.Choice, input.InputType); 136Assert.Equal(InputType.Choice, input.InputType); 147Assert.Equal(InputType.Choice, input.InputType); 158Assert.Equal(InputType.Choice, input.InputType); 668Assert.Equal(InputType.Boolean, confirmDeleteArgument.InputType); 2966Assert.Equal(InputType.Choice, locationInput.InputType); 5010InputType = input.InputType,
ProvisioningContextProviderTests.cs (11)
353Assert.Equal(InputType.Choice, input.InputType); 360Assert.Equal(InputType.Choice, input.InputType); 367Assert.Equal(InputType.Text, input.InputType); 374Assert.Equal(InputType.Choice, input.InputType); 506Assert.Equal(InputType.Choice, input.InputType); 513Assert.Equal(InputType.Choice, input.InputType); 521Assert.Equal(InputType.Text, input.InputType); 528Assert.Equal(InputType.Choice, input.InputType); 646Assert.Equal(InputType.Choice, subscriptionInput.InputType); 793Assert.Equal(InputType.Choice, subscriptionInput.InputType); 839Assert.Equal(InputType.Text, resourceGroupInput.InputType);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
90Assert.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)
219Assert.Equal(InputType.Text, input.InputType); 225Assert.Equal(InputType.Text, input.InputType); 231Assert.Equal(InputType.SecretText, input.InputType); 237Assert.Equal(InputType.Boolean, input.InputType); 458Assert.Equal(InputType.Text, param1Input.InputType); 464Assert.Equal(InputType.Text, param2Input.InputType); 501Assert.Equal(InputType.SecretText, secretInput.InputType); 537Assert.Equal(InputType.Boolean, saveCheckbox.InputType); 576Assert.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)
595if (updatedInput.InputType == InputType.File && files.Count > 0)