39 writes to InputType
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
115InputType = Secret ? InputType.SecretText : InputType.Text,
InteractionService.cs (1)
77return await PromptInputAsync(title, message, new InteractionInput { InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
153InputType = InputType.Boolean,
Aspire.Hosting.Azure (3)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (3)
104new InteractionInput { InputType = InputType.Choice, Label = "Location", Placeholder = "Select location", Required = true, Options = [..locations] }, 105new InteractionInput { InputType = InputType.SecretText, Label = "Subscription ID", Placeholder = "Select subscription ID", Required = true }, 106new InteractionInput { InputType = InputType.Text, Label = "Resource group", Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Tests (14)
AddParameterTests.cs (3)
443InputType = InputType.Number, 501InputType = InputType.Number, 545InputType = InputType.Number,
Dashboard\DashboardServiceTests.cs (1)
317new Aspire.Hosting.InteractionInput { InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (10)
178var input = new InteractionInput { Label = "Value", InputType = InputType.Text, }; 211var input = new InteractionInput { Label = "Value", InputType = InputType.Text, Required = true }; 230var input = new InteractionInput { Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 250var input = new InteractionInput { Label = "Value", InputType = InputType.Number }; 270var input = new InteractionInput { Label = "Value", InputType = InputType.Boolean }; 300var input = new InteractionInput { Label = "Value", InputType = inputType, MaxLength = maxLength }; 331InputType = InputType.Text, 350InputType = InputType.Text, 367InputType = InputType.Text, 401InputType = InputType.Text,
ExternalServices.AppHost (1)
AppHost.cs (1)
13InputType = InputType.Text,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
48InputType = InputType.Number,
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
40InputType = InputType.Text, 47InputType = InputType.Text, 54InputType = InputType.Choice, 99InputType = InputType.Text, 121InputType = InputType.SecretText, 135InputType = InputType.Choice, 155InputType = InputType.Boolean, 168InputType = InputType.Number, 182InputType = InputType.Choice,
Stress.AppHost (8)
InteractionCommands.cs (8)
57var inputNoMarkdown = new InteractionInput { 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 { 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 }; 106InputType = InputType.Choice, 130var numberOfPeopleInput = new InteractionInput { InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 133new InteractionInput { InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 134new InteractionInput { InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 137new InteractionInput { InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 220InputType = InputType.Text,
21 references to InputType
Aspire.Hosting (3)
Dashboard\DashboardService.cs (1)
122InputType = MapInputType(input.InputType),
InteractionService.cs (1)
263switch (input.InputType)
Publishing\PublishingActivityReporter.cs (1)
289InputType = input.InputType.ToString(),
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
85Assert.Equal(InputType.Choice, input.InputType); 91Assert.Equal(InputType.SecretText, input.InputType); 97Assert.Equal(InputType.Text, input.InputType);
DefaultProvisioningContextProviderTests.cs (3)
281Assert.Equal(InputType.Choice, input.InputType); 287Assert.Equal(InputType.SecretText, input.InputType); 293Assert.Equal(InputType.Text, input.InputType);
Aspire.Hosting.Tests (12)
AddParameterTests.cs (4)
466Assert.Equal(InputType.Text, input.InputType); 485Assert.Equal(InputType.SecretText, input.InputType); 512Assert.Equal(InputType.Number, input.InputType); 555Assert.Equal(InputType.Number, input.InputType);
InteractionServiceTests.cs (1)
338Assert.Equal(InputType.Text, input.InputType);
Orchestrator\ParameterProcessorTests.cs (7)
209Assert.Equal(InputType.Text, input.InputType); 215Assert.Equal(InputType.Text, input.InputType); 221Assert.Equal(InputType.SecretText, input.InputType); 227Assert.Equal(InputType.Boolean, input.InputType); 436Assert.Equal(InputType.Text, param1Input.InputType); 442Assert.Equal(InputType.Text, param2Input.InputType); 476Assert.Equal(InputType.SecretText, secretInput.InputType);