64 writes to InputType
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
119InputType = Secret ? InputType.SecretText : InputType.Text,
InteractionService.cs (1)
77return await PromptInputAsync(title, message, new InteractionInput { Name = inputLabel, InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
155InputType = InputType.Boolean,
Aspire.Hosting.Azure (3)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (3)
108new InteractionInput { Name = LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] }, 109new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true }, 110new InteractionInput { Name = ResourceGroupName, InputType = InputType.Text, Label = AzureProvisioningStrings.ResourceGroupLabel, Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Tests (39)
AddParameterTests.cs (3)
383InputType = InputType.Number, 442InputType = InputType.Number, 487InputType = InputType.Number,
Dashboard\DashboardServiceTests.cs (2)
317new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text }); 363new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (34)
178var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 211var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 230var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 250var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 270var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 300var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 332InputType = InputType.Text, 352InputType = InputType.Text, 370InputType = InputType.Text, 405InputType = InputType.Text, 417new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 418new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 419new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 457new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 458new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 459new InteractionInput { Name = "Age", InputType = InputType.Number } 491new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 492new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 493new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 514new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 515new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 529new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 530new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 544new InteractionInput { Name = "Input1", InputType = InputType.Text }, 545new InteractionInput { Name = "Input2", InputType = InputType.Text }, 546new InteractionInput { Name = "Input3", InputType = InputType.Text } 577new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 578new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 579new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 614new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 630new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 631new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 669new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 670new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
ExternalServices.AppHost (1)
AppHost.cs (1)
14InputType = InputType.Text,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
49InputType = InputType.Number,
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
41InputType = InputType.Text, 49InputType = InputType.Text, 57InputType = InputType.Choice, 103InputType = InputType.Text, 126InputType = InputType.SecretText, 141InputType = InputType.Choice, 162InputType = InputType.Boolean, 176InputType = InputType.Number, 191InputType = InputType.Choice,
Stress.AppHost (8)
InteractionCommands.cs (8)
57var 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." }; 58var 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 }; 107InputType = InputType.Choice, 132var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 135new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 136new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 139new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 223InputType = InputType.Text,
21 references to InputType
Aspire.Hosting (3)
Dashboard\DashboardService.cs (1)
122InputType = MapInputType(input.InputType),
InteractionService.cs (1)
266switch (input.InputType)
Publishing\PublishingActivityReporter.cs (1)
289InputType = input.InputType.ToString(),
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
87Assert.Equal(InputType.Choice, input.InputType); 93Assert.Equal(InputType.SecretText, input.InputType); 99Assert.Equal(InputType.Text, input.InputType);
DefaultProvisioningContextProviderTests.cs (3)
298Assert.Equal(InputType.Choice, input.InputType); 305Assert.Equal(InputType.SecretText, input.InputType); 312Assert.Equal(InputType.Text, input.InputType);
Aspire.Hosting.Tests (12)
AddParameterTests.cs (4)
406Assert.Equal(InputType.Text, input.InputType); 425Assert.Equal(InputType.SecretText, input.InputType); 453Assert.Equal(InputType.Number, input.InputType); 497Assert.Equal(InputType.Number, input.InputType);
InteractionServiceTests.cs (1)
339Assert.Equal(InputType.Text, input.InputType);
Orchestrator\ParameterProcessorTests.cs (7)
208Assert.Equal(InputType.Text, input.InputType); 214Assert.Equal(InputType.Text, input.InputType); 220Assert.Equal(InputType.SecretText, input.InputType); 226Assert.Equal(InputType.Boolean, input.InputType); 435Assert.Equal(InputType.Text, param1Input.InputType); 441Assert.Equal(InputType.Text, param2Input.InputType); 475Assert.Equal(InputType.SecretText, secretInput.InputType);