20 writes to Placeholder
Aspire.Hosting (2)
ApplicationModel\ParameterResource.cs (1)
119
Placeholder
= $"Enter value for {Name}"
InteractionService.cs (1)
77
return 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)
104
new InteractionInput { InputType = InputType.Choice, Label = "Location",
Placeholder
= "Select location", Required = true, Options = [..locations] },
105
new InteractionInput { InputType = InputType.SecretText, Label = "Subscription ID",
Placeholder
= "Select subscription ID", Required = true },
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
505
Placeholder
= "Enter number"
ExternalServices.AppHost (1)
AppHost.cs (1)
16
Placeholder
= $"Enter value for {p.Name}",
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50
Placeholder
= "Enter a number",
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
42
Placeholder
= "my-app"
49
Placeholder
= "1.0.0"
101
Placeholder
= "dev, staging, prod"
123
Placeholder
= "Enter a strong password"
170
Placeholder
= "1-10"
Stress.AppHost (8)
InteractionCommands.cs (8)
57
var 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." };
58
var 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 };
108
Placeholder
= "Select dinner",
130
var numberOfPeopleInput = new InteractionInput { InputType = InputType.Number, Label = "Number of people",
Placeholder
= "Enter number of people", Value = "2", Required = true };
133
new InteractionInput { InputType = InputType.Text, Label = "Name",
Placeholder
= "Enter name", Required = true, MaxLength = 50 },
134
new InteractionInput { InputType = InputType.SecretText, Label = "Password",
Placeholder
= "Enter password", Required = true, MaxLength = 20 },
137
new InteractionInput { InputType = InputType.Boolean, Label = "Remember me",
Placeholder
= "What does this do?", Required = true },
222
Placeholder
= $"Enter input {i + 1}"
5 references to Placeholder
Aspire.Hosting (2)
Dashboard\DashboardService.cs (2)
134
if (input.
Placeholder
!= null)
136
dto.Placeholder = input.
Placeholder
;
Aspire.Hosting.Tests (3)
AddParameterTests.cs (3)
469
Assert.Equal("Enter value for test", input.
Placeholder
);
488
Assert.Equal("Enter value for secret", input.
Placeholder
);
515
Assert.Equal("Enter number", input.
Placeholder
);