86 writes to Label
Aspire.Hosting (4)
ApplicationModel\ParameterResource.cs (1)
143Label = Name,
InteractionService.cs (1)
108return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (2)
312Label = InteractionStrings.ParametersInputsRememberLabel, 351Label = InteractionStrings.ParametersInputsDeleteLabel
Aspire.Hosting.Azure (10)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
163Label = AzureProvisioningStrings.TenantLabel, 189Label = AzureProvisioningStrings.TenantLabel, 262Label = AzureProvisioningStrings.SubscriptionIdLabel, 288Label = AzureProvisioningStrings.SubscriptionIdLabel, 356Label = AzureProvisioningStrings.ResourceGroupLabel, 454Label = AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
135Label = AzureProvisioningStrings.TenantLabel, 186Label = AzureProvisioningStrings.SubscriptionIdLabel, 200Label = AzureProvisioningStrings.ResourceGroupLabel, 237Label = AzureProvisioningStrings.LocationLabel,
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
636Label = "Custom Port Number",
Aspire.Hosting.Tests (40)
AddParameterTests.cs (3)
385Label = "Custom Label", 444Label = "Custom Label", 489Label = "Custom Label",
Dashboard\DashboardServiceTests.cs (1)
368new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (36)
279var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 316var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 339var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 362var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 383var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 406var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 439var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 474Label = "Test Label", 494Label = "Test Label", 512Label = "Test Label", 547Label = "Test Label", 560new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 561new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 562new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 600new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 601new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 634new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 635new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 636new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 657new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 658new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 672new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 673new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 720new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 721new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 722new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 757new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 773new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 774new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 880new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 935new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 936new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 990Label = "Choice", 1003new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1023Label = "Choice", 1036new 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 (10)
DistributedApplicationBuilderExtensions.cs (10)
50Label = "Application Name", 58Label = "Application Version", 66Label = "SSL Certificate Type", 79Label = "More certificate details", 134Label = "Environment Name", 157Label = "Database Password", 172Label = "Region", 193Label = "Enable Verbose Logging", 207Label = "Instance Count", 222Label = "Strategy",
Stress.AppHost (19)
InteractionCommands.cs (19)
58var 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." }; 59var 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 }; 71var 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.", EnableDescriptionMarkdown = true }; 76Label = "Choice with long content", 87Label = "Choice with long content", 146Label = "Dinner", 159Label = "Requirements", 198Label = "Dinner", 226Label = "Requirements", 235var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 238new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 239new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 243new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 296Label = "Custom choice", 344Label = "Dynamic", 354Label = "Dynamic custom choice", 435Label = "Custom choice", 453Label = "Dynamic", 566Label = $"Input {i + 1}",
59 references to Label
Aspire.Hosting (2)
IInteractionService.cs (2)
262internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ? Name : Label;
Aspire.Hosting.Azure.Tests (16)
AzureDeployerTests.cs (9)
57Assert.Equal("Tenant ID", input.Label); 74Assert.Equal("Subscription ID", input.Label); 92Assert.Equal("Resource group", input.Label); 110Assert.Equal("Location", input.Label); 584Assert.Equal("unresolved-test-param", input.Label); 656Assert.Equal("Custom Port Number", input.Label); 847Assert.Equal("dependent-param", input.Label); 892Assert.Equal("app-port", input.Label); 1673var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.Label));
ProvisioningContextProviderTests.cs (7)
285Assert.Equal("Tenant ID", input.Label); 292Assert.Equal("Subscription ID", input.Label); 299Assert.Equal("Resource group", input.Label); 306Assert.Equal("Location", input.Label); 455Assert.Equal("Subscription ID", input.Label); 463Assert.Equal("Resource group", input.Label); 470Assert.Equal("Location", input.Label);
Aspire.Hosting.Tests (35)
AddParameterTests.cs (4)
408Assert.Equal("test", input.Label); 427Assert.Equal("secret", input.Label); 455Assert.Equal("Custom Label", input.Label); 499Assert.Equal("Custom Label", input.Label);
InteractionServiceTests.cs (19)
481Assert.Equal("Test Label", input.Label); 570Assert.Equal("Username", collection["Username"].Label); 571Assert.Equal("Password", collection["Password"].Label); 572Assert.Equal("Remember Me", collection["RememberMe"].Label); 581Assert.Equal("Username", usernameInput.Label); 617Assert.Equal("User Name", collection["UserName"].Label); 618Assert.Equal("Email Address", collection["EmailAddress"].Label); 619Assert.Null(collection["Age"].Label); // No label specified, should use EffectiveLabel 623Assert.Equal("User Name", collection[0].Label); 624Assert.Equal("Email Address", collection[1].Label); 625Assert.Null(collection[2].Label); 646Assert.Equal("Explicit", collection["ExplicitName"].Label); 647Assert.Equal("Another", collection["AnotherExplicit"].Label); 648Assert.Equal("Generated Label", collection["GeneratedLabel"].Label); 741Assert.Equal("!@#$%^&*()", collection["SpecialInput"].Label); 744Assert.Equal("", collection["EmptyLabel"].Label); 747Assert.Equal(" ", collection["WhitespaceLabel"].Label); 953Assert.Equal("Email", emailInput.Label); 954Assert.Equal("Age", ageInput.Label);
Orchestrator\ParameterProcessorTests.cs (12)
218Assert.Equal("param1", input.Label); 224Assert.Equal("param2", input.Label); 230Assert.Equal("secretParam", input.Label); 236Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.Label); 446Assert.Equal("param1", param1Input.Label); 452Assert.Equal("param2", param2Input.Label); 489Assert.Equal("secretParam", secretInput.Label); 524Assert.Equal("param1", paramInput.Label); 527Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 563Assert.Equal("param1", paramInput.Label); 566Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 918Assert.Equal("testParam", inputInteraction.Inputs["testParam"].Label);
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
103var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 109var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version"); 123var appName = multiInputResult.Canceled ? "default-app" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Name")?.Value ?? "default-app"); 124var appVersion = multiInputResult.Canceled ? "1.0.0" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Version")?.Value ?? "1.0.0"); 125var sslType = multiInputResult.Canceled ? "self-signed" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "SSL Certificate Type")?.Value ?? "self-signed");
Stress.AppHost (1)
InteractionCommands.cs (1)
186logger.LogInformation("Input: {Label} = {Value}", updatedInput.Label, updatedInput.Value);