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