85 writes to Label
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
120Label = 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 (1)
294Label = InteractionStrings.ParametersInputsRememberLabel
Aspire.Hosting.Azure (10)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
164Label = AzureProvisioningStrings.TenantLabel, 190Label = AzureProvisioningStrings.TenantLabel, 263Label = AzureProvisioningStrings.SubscriptionIdLabel, 289Label = AzureProvisioningStrings.SubscriptionIdLabel, 360Label = AzureProvisioningStrings.LocationLabel, 368Label = AzureProvisioningStrings.ResourceGroupLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
135Label = AzureProvisioningStrings.TenantLabel, 162Label = AzureProvisioningStrings.SubscriptionIdLabel, 197Label = AzureProvisioningStrings.LocationLabel, 220Label = AzureProvisioningStrings.ResourceGroupLabel,
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
552Label = "Custom Port Number",
Aspire.Hosting.Tests (40)
AddParameterTests.cs (3)
384Label = "Custom Label", 443Label = "Custom Label", 488Label = "Custom Label",
Dashboard\DashboardServiceTests.cs (1)
367new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (36)
278var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 315var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 338var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 361var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 382var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 405var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 438var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 473Label = "Test Label", 493Label = "Test Label", 511Label = "Test Label", 546Label = "Test Label", 559new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 560new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 561new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 599new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 600new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 633new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 634new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 635new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 656new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 657new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 671new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 672new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 719new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 720new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 721new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 756new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 772new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 773new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 879new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 934new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 935new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 989Label = "Choice", 1002new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1022Label = "Choice", 1035new 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)
49Label = "Application Name", 57Label = "Application Version", 65Label = "SSL Certificate Type", 78Label = "More certificate details", 133Label = "Environment Name", 156Label = "Database Password", 171Label = "Region", 192Label = "Enable Verbose Logging", 206Label = "Instance Count", 221Label = "Strategy",
Stress.AppHost (19)
InteractionCommands.cs (19)
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 }; 70var 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 }; 75Label = "Choice with long content", 86Label = "Choice with long content", 145Label = "Dinner", 158Label = "Requirements", 197Label = "Dinner", 225Label = "Requirements", 234var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 237new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 238new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 242new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 295Label = "Custom choice", 343Label = "Dynamic", 353Label = "Dynamic custom choice", 434Label = "Custom choice", 452Label = "Dynamic", 565Label = $"Input {i + 1}",
53 references to Label
Aspire.Hosting (2)
IInteractionService.cs (2)
262internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ? Name : Label;
Aspire.Hosting.Azure.Tests (15)
AzureDeployerTests.cs (8)
54Assert.Equal("Tenant ID", input.Label); 71Assert.Equal("Subscription ID", input.Label); 89Assert.Equal("Location", input.Label); 95Assert.Equal("Resource group", input.Label); 500Assert.Equal("test-param", input.Label); 572Assert.Equal("Custom Port Number", input.Label); 736Assert.Equal("dependent-param", input.Label); 781Assert.Equal("app-port", input.Label);
ProvisioningContextProviderTests.cs (7)
285Assert.Equal("Tenant ID", input.Label); 292Assert.Equal("Subscription ID", input.Label); 299Assert.Equal("Location", input.Label); 306Assert.Equal("Resource group", input.Label); 444Assert.Equal("Subscription ID", input.Label); 452Assert.Equal("Location", input.Label); 459Assert.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)
480Assert.Equal("Test Label", input.Label); 569Assert.Equal("Username", collection["Username"].Label); 570Assert.Equal("Password", collection["Password"].Label); 571Assert.Equal("Remember Me", collection["RememberMe"].Label); 580Assert.Equal("Username", usernameInput.Label); 616Assert.Equal("User Name", collection["UserName"].Label); 617Assert.Equal("Email Address", collection["EmailAddress"].Label); 618Assert.Null(collection["Age"].Label); // No label specified, should use EffectiveLabel 622Assert.Equal("User Name", collection[0].Label); 623Assert.Equal("Email Address", collection[1].Label); 624Assert.Null(collection[2].Label); 645Assert.Equal("Explicit", collection["ExplicitName"].Label); 646Assert.Equal("Another", collection["AnotherExplicit"].Label); 647Assert.Equal("Generated Label", collection["GeneratedLabel"].Label); 740Assert.Equal("!@#$%^&*()", collection["SpecialInput"].Label); 743Assert.Equal("", collection["EmptyLabel"].Label); 746Assert.Equal(" ", collection["WhitespaceLabel"].Label); 952Assert.Equal("Email", emailInput.Label); 953Assert.Equal("Age", ageInput.Label);
Orchestrator\ParameterProcessorTests.cs (7)
209Assert.Equal("param1", input.Label); 215Assert.Equal("param2", input.Label); 221Assert.Equal("secretParam", input.Label); 227Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.Label); 434Assert.Equal("param1", param1Input.Label); 440Assert.Equal("param2", param2Input.Label); 474Assert.Equal("secretParam", secretInput.Label);
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
102var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 108var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version"); 122var appName = multiInputResult.Canceled ? "default-app" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Name")?.Value ?? "default-app"); 123var appVersion = multiInputResult.Canceled ? "1.0.0" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "Application Version")?.Value ?? "1.0.0"); 124var sslType = multiInputResult.Canceled ? "self-signed" : (multiInputResult.Data?.FirstOrDefault(i => i.Label == "SSL Certificate Type")?.Value ?? "self-signed");
Stress.AppHost (1)
InteractionCommands.cs (1)
185logger.LogInformation("Input: {Label} = {Value}", updatedInput.Label, updatedInput.Value);