23 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)
194
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)
502
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 (9)
InteractionCommands.cs (9)
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",
137
Placeholder
= "Select requirements",
145
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people",
Placeholder
= "Enter number of people", Value = "2", Required = true };
148
new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name",
Placeholder
= "Enter name", Required = true, MaxLength = 50 },
149
new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password",
Placeholder
= "Enter password", Required = true, MaxLength = 20 },
153
new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me",
Placeholder
= "What does this do?", Required = true },
239
Placeholder
= $"Enter input {i + 1}"
10 references to Placeholder
Aspire.Hosting (2)
Dashboard\DashboardService.cs (2)
135
if (input.
Placeholder
!= null)
137
dto.Placeholder = input.
Placeholder
;
Aspire.Hosting.Azure.Tests (5)
AzureDeployerTests.cs (5)
449
Assert.Equal("Enter value for test-param", input.
Placeholder
);
522
Assert.Equal("8080", input.
Placeholder
);
663
Assert.Equal("Enter value for cache-password", input.
Placeholder
);
709
Assert.Equal("Enter value for dependent-param", input.
Placeholder
);
754
Assert.Equal("Enter value for app-port", 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
);