20 writes to Placeholder
Aspire.Hosting (2)
ApplicationModel\ParameterResource.cs (1)
119Placeholder = $"Enter value for {Name}"
InteractionService.cs (1)
77return await PromptInputAsync(title, message, new InteractionInput { InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
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 },
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
505Placeholder = "Enter number"
ExternalServices.AppHost (1)
AppHost.cs (1)
16Placeholder = $"Enter value for {p.Name}",
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50Placeholder = "Enter a number",
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
42Placeholder = "my-app" 49Placeholder = "1.0.0" 101Placeholder = "dev, staging, prod" 123Placeholder = "Enter a strong password" 170Placeholder = "1-10"
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 }; 108Placeholder = "Select dinner", 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 }, 222Placeholder = $"Enter input {i + 1}"
5 references to Placeholder
Aspire.Hosting (2)
Dashboard\DashboardService.cs (2)
134if (input.Placeholder != null) 136dto.Placeholder = input.Placeholder;
Aspire.Hosting.Tests (3)
AddParameterTests.cs (3)
469Assert.Equal("Enter value for test", input.Placeholder); 488Assert.Equal("Enter value for secret", input.Placeholder); 515Assert.Equal("Enter number", input.Placeholder);