23 writes to Placeholder
Aspire.Hosting (2)
ApplicationModel\ParameterResource.cs (1)
123Placeholder = string.Format(CultureInfo.CurrentCulture, InteractionStrings.ParametersInputsParameterPlaceholder, Name)
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);
Aspire.Hosting.Azure (3)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
194Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
136new InteractionInput { Name = LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] }, 137new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true },
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
502Placeholder = "8080"
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
446Placeholder = "Enter number"
ExternalServices.AppHost (1)
AppHost.cs (1)
17Placeholder = $"Enter value for {p.Name}",
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
51Placeholder = "Enter a number",
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
43Placeholder = "my-app" 51Placeholder = "1.0.0" 105Placeholder = "dev, staging, prod" 128Placeholder = "Enter a strong password" 178Placeholder = "1-10"
Stress.AppHost (9)
InteractionCommands.cs (9)
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 }; 109Placeholder = "Select dinner", 137Placeholder = "Select requirements", 145var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 148new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 149new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 153new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 239Placeholder = $"Enter input {i + 1}"
10 references to Placeholder
Aspire.Hosting (2)
Dashboard\DashboardService.cs (2)
135if (input.Placeholder != null) 137dto.Placeholder = input.Placeholder;
Aspire.Hosting.Azure.Tests (5)
AzureDeployerTests.cs (5)
449Assert.Equal("Enter value for test-param", input.Placeholder); 522Assert.Equal("8080", input.Placeholder); 663Assert.Equal("Enter value for cache-password", input.Placeholder); 709Assert.Equal("Enter value for dependent-param", input.Placeholder); 754Assert.Equal("Enter value for app-port", input.Placeholder);
Aspire.Hosting.Tests (3)
AddParameterTests.cs (3)
409Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "test"), input.Placeholder); 428Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "secret"), input.Placeholder); 456Assert.Equal("Enter number", input.Placeholder);