59 writes to Label
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
120Label = 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);
Orchestrator\ParameterProcessor.cs (1)
156Label = InteractionStrings.ParametersInputsRememberLabel
Aspire.Hosting.Azure (3)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (3)
108new InteractionInput { Name = LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] }, 109new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true }, 110new InteractionInput { Name = ResourceGroupName, InputType = InputType.Text, Label = AzureProvisioningStrings.ResourceGroupLabel, Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Tests (34)
AddParameterTests.cs (3)
384Label = "Custom Label", 443Label = "Custom Label", 488Label = "Custom Label",
Dashboard\DashboardServiceTests.cs (1)
363new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (30)
178var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 211var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 230var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 250var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 270var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 300var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 331Label = "Test Label", 351Label = "Test Label", 369Label = "Test Label", 404Label = "Test Label", 417new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 418new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 419new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 457new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 458new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 491new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 492new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 493new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 514new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 515new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 529new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 530new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 577new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 578new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 579new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 614new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 630new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 631new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 669new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 670new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
ExternalServices.AppHost (1)
AppHost.cs (1)
16Label = p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50Label = "Custom Input",
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
40Label = "Application Name", 48Label = "Application Version", 56Label = "SSL Certificate Type", 102Label = "Environment Name", 125Label = "Database Password", 140Label = "Region", 161Label = "Enable Verbose Logging", 175Label = "Instance Count", 190Label = "Strategy",
Stress.AppHost (8)
InteractionCommands.cs (8)
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 }; 108Label = "Dinner", 132var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 135new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 136new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 139new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 224Label = $"Input {i + 1}",
46 references to Label
Aspire.Hosting (2)
IInteractionService.cs (2)
118internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ? Name : Label;
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
86Assert.Equal("Location", input.Label); 92Assert.Equal("Subscription ID", input.Label); 98Assert.Equal("Resource group", input.Label);
DefaultProvisioningContextProviderTests.cs (3)
297Assert.Equal("Location", input.Label); 304Assert.Equal("Subscription ID", input.Label); 311Assert.Equal("Resource group", input.Label);
Aspire.Hosting.Tests (30)
AddParameterTests.cs (4)
407Assert.Equal("test", input.Label); 426Assert.Equal("secret", input.Label); 454Assert.Equal("Custom Label", input.Label); 498Assert.Equal("Custom Label", input.Label);
InteractionServiceTests.cs (19)
338Assert.Equal("Test Label", input.Label); 427Assert.Equal("Username", collection["Username"].Label); 428Assert.Equal("Password", collection["Password"].Label); 429Assert.Equal("Remember Me", collection["RememberMe"].Label); 438Assert.Equal("Username", usernameInput.Label); 474Assert.Equal("User Name", collection["UserName"].Label); 475Assert.Equal("Email Address", collection["EmailAddress"].Label); 476Assert.Null(collection["Age"].Label); // No label specified, should use EffectiveLabel 480Assert.Equal("User Name", collection[0].Label); 481Assert.Equal("Email Address", collection[1].Label); 482Assert.Null(collection[2].Label); 503Assert.Equal("Explicit", collection["ExplicitName"].Label); 504Assert.Equal("Another", collection["AnotherExplicit"].Label); 505Assert.Equal("Generated Label", collection["GeneratedLabel"].Label); 598Assert.Equal("!@#$%^&*()", collection["SpecialInput"].Label); 601Assert.Equal("", collection["EmptyLabel"].Label); 604Assert.Equal(" ", collection["WhitespaceLabel"].Label); 687Assert.Equal("Email", emailInput.Label); 688Assert.Equal("Age", ageInput.Label);
Orchestrator\ParameterProcessorTests.cs (7)
207Assert.Equal("param1", input.Label); 213Assert.Equal("param2", input.Label); 219Assert.Equal("secretParam", input.Label); 225Assert.Equal("Save to user secrets", input.Label); 432Assert.Equal("param1", param1Input.Label); 438Assert.Equal("param2", param2Input.Label); 472Assert.Equal("secretParam", secretInput.Label);
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
71var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 77var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version"); 91var appName = multiInputResult.Canceled ? "default-app" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Name")?.Value ?? "default-app"); 92var appVersion = multiInputResult.Canceled ? "1.0.0" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Version")?.Value ?? "1.0.0"); 93var sslType = multiInputResult.Canceled ? "self-signed" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "SSL Certificate Type")?.Value ?? "self-signed");
Stress.AppHost (3)
InteractionCommands.cs (3)
97logger.LogInformation("Input: {Label} = {Value}", input.Label, input.Value); 168logger.LogInformation("Input: {Label} = {Value}", updatedInput.Label, updatedInput.Value); 244logger.LogInformation("Input: {Label} = {Value}", input.Label, input.Value);