211 writes to Label
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
605Label = Name,
ApplicationModel\ResourceCommandService.cs (1)
803Label = input.Label,
Ats\InteractionExports.cs (2)
259Label = input.Label, 312Label = options?.Label,
InteractionService.cs (1)
151return 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 (4)
347Label = InteractionStrings.ParametersInputsRememberLabel, 387Label = InteractionStrings.ParametersInputsDeleteLabel, 497Label = InteractionStrings.ParametersInputsDeleteLabel, 559Label = InteractionStrings.ParametersInputsRememberLabel,
ParameterResourceBuilderExtensions.cs (1)
298Label = GetOptionalString(options.Label) ?? parameter.Name,
Aspire.Hosting.Azure (20)
AzureProvisioningController.cs (8)
275Label = AzureProvisioningStrings.TenantLabel, 296Label = AzureProvisioningStrings.SubscriptionIdLabel, 317Label = AzureProvisioningStrings.ResourceGroupLabel, 335Label = AzureProvisioningStrings.LocationLabel, 355Label = AzureProvisioningStrings.TenantResourceSuffixLabel, 380Label = AzureProvisioningStrings.LocationLabel, 398Label = AzureProvisioningStrings.ChangeResourceLocationConfirmDeleteLabel, 702Label = AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (7)
125Label = AzureProvisioningStrings.TenantResourceSuffixLabel, 193Label = AzureProvisioningStrings.TenantLabel, 219Label = AzureProvisioningStrings.TenantLabel, 292Label = AzureProvisioningStrings.SubscriptionIdLabel, 318Label = AzureProvisioningStrings.SubscriptionIdLabel, 386Label = AzureProvisioningStrings.ResourceGroupLabel, 484Label = AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (5)
350Label = AzureProvisioningStrings.TenantLabel, 376Label = AzureProvisioningStrings.SubscriptionIdLabel, 411Label = AzureProvisioningStrings.ResourceGroupLabel, 452Label = AzureProvisioningStrings.LocationLabel, 493Label = AzureProvisioningStrings.TenantResourceSuffixLabel,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
1061Label = "Custom Port Number",
AzureEnvironmentResourceExtensionsTests.cs (1)
5353Label = input.Label,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
47Label = BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel, 61Label = BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel, 82Label = BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel, 105Label = BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel, 126Label = BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
47Label = BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel, 61Label = BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel, 82Label = BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel, 105Label = BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel, 126Label = BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
838Label = "Migration Name",
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
332Label = "Message",
PromptAgent\PromptAgentBuilderExtensions.cs (1)
122Label = "Message",
Aspire.Hosting.Tests (67)
AddParameterTests.cs (5)
738Label = "Custom Label", 844Label = "Custom Label", 924Label = "Custom Label", 951Label = "Custom Label" 992Label = "Custom Label",
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
217Label = "Selector",
Dashboard\DashboardServiceTests.cs (4)
178Label = "Selector", 771new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 983? new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 } 984: new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType };
InteractionServiceTests.cs (42)
466var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 503var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 526var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 549var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 570var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 593var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 626var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 661Label = "Test Label", 681Label = "Test Label", 699Label = "Test Label", 734Label = "Test Label", 747new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 748new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 749new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 787new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 788new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 821new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 822new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 823new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 844new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 845new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 859new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 860new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 907new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 908new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 909new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 944new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 960new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 961new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 1067new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 1122new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 1123new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1177Label = "Choice", 1190new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1210Label = "Choice", 1223new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1457var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1486var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1511var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1577var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1600var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false }; 1627Label = "File",
Orchestrator\ParameterProcessorTests.cs (11)
1316Label = "Custom Input" 1348Label = "Region" 1355Label = "Zone", 1394Label = "Region" 1402Label = "Zone", 1436Label = "Region", 1489Label = "Value" 1496Label = "Zone", 1517static InteractionInput CreateInput(string name) => new() { Name = name, InputType = InputType.Text, Label = name }; 1531Label = "Zone", 1573Label = "Secret"
ResourceCommandServiceTests.cs (4)
955Label = "Selector", 1284Label = "Selector", 1514Label = "Selector", 1682Label = "Target",
ExternalServices.AppHost (1)
AppHost.cs (1)
15Label = p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
56Label = "Custom Input",
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
47Label = "Application Name", 55Label = "Application Version", 63Label = "SSL Certificate Type", 76Label = "More certificate details", 98Label = "Certificate file", 149Label = "Environment Name", 172Label = "Database Password", 187Label = "Region", 208Label = "Enable Verbose Logging", 222Label = "Instance Count", 237Label = "Strategy",
Stress.AppHost (80)
CommandResources.cs (47)
149Label = "Message", 157Label = "Count", 164Label = "Urgent", 206Label = "Message", 216Label = "Repeat", 224Label = "Shout", 232Label = "Flavor", 246Label = "Secret", 301Label = "Target", 311Label = "Mode", 325Label = "Timeout seconds", 333Label = "Require healthy", 392Label = "Category", 407Label = "Item", 450Label = "Quantity", 459Label = "Priority", 552Label = "Command", 580Label = "Input", 654Label = "Name", 663Label = "Input", 709Label = "Dataset", 723Label = "Customers", 755Label = "Filter", 789Label = "Job", 798Label = "Payload", 827Label = "Backup path", 836Label = "Container", 845Label = "Database", 874Label = "Container", 884Label = "Command", 894Label = "Working directory", 1061Label = "Generate traces", 1070Label = "Trace count", 1079Label = "Spans per trace", 1088Label = "Generate large trace", 1097Label = "Large trace span count", 1106Label = "Generate structured logs", 1114Label = "Structured log count", 1123Label = "Generate console logs", 1131Label = "Console log count", 1140Label = "Generate metrics", 1149Label = "Metric duration (hours)", 1158Label = "Metric dimension count", 1387Label = "Run ID", 1397Label = "Iterations", 1406Label = "Enabled", 1419Label = $"Item {i:00}",
InteractionCommands.cs (33)
75var 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." }; 76var 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 }; 88var 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 }; 93Label = "Choice with long content", 104Label = "Choice with long content", 163Label = "Dinner", 176Label = "Requirements", 215Label = "Dinner", 243Label = "Requirements", 252var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 255new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Description = "The name for the dinner reservation. Maximum 50 characters.", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 256new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Description = "The password for the reservation. Maximum 20 characters.", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 260new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 303Label = "Text", 312Label = "Password", 321Label = "Choice", 332Label = "Custom choice", 343Label = "Number of people", 352Label = "Remember me", 361Label = "Attachment", 394Label = "Custom choice", 442Label = "Dynamic", 452Label = "Dynamic custom choice", 533Label = "Custom choice", 551Label = "Dynamic", 584new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 671Label = $"Input {i + 1}", 704Label = "Tenant ID", 727Label = "Subscription ID", 766Label = "Resource group", 797Label = "Location", 1091Label = "Configuration file", 1136Label = "Certificate files",
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
300Label = "Upper limit",
TestShop.AppHost (5)
AppHost.cs (5)
29Label = parameter.Name, 45Label = parameter.Name, 62Label = parameter.Name, 73Label = parameter.Name, 83Label = parameter.Name,
73 references to Label
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
803Label = input.Label,
Ats\InteractionExports.cs (1)
259Label = input.Label,
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1395Label = input.Label,
IInteractionService.cs (2)
358internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ? Name : Label;
Aspire.Hosting.Azure.Tests (20)
AzureDeployerTests.cs (9)
249Assert.Equal("Tenant ID", input.Label); 266Assert.Equal("Subscription ID", input.Label); 284Assert.Equal("Resource group", input.Label); 302Assert.Equal("Location", input.Label); 1009Assert.Equal("unresolved-test-param", input.Label); 1081Assert.Equal("Custom Port Number", input.Label); 1272Assert.Equal("dependent-param", input.Label); 1317Assert.Equal("app-port", input.Label); 2169var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.Label));
AzureEnvironmentResourceExtensionsTests.cs (1)
5353Label = input.Label,
ProvisioningContextProviderTests.cs (10)
42Assert.Equal(AzureProvisioningStrings.TenantResourceSuffixLabel, input.Label); 166Assert.Equal(AzureProvisioningStrings.TenantResourceSuffixLabel, input.Label); 553Assert.Equal("Tenant ID", input.Label); 560Assert.Equal("Subscription ID", input.Label); 567Assert.Equal("Resource group", input.Label); 574Assert.Equal("Location", input.Label); 708Assert.Equal("Tenant ID", input.Label); 715Assert.Equal("Subscription ID", input.Label); 723Assert.Equal("Resource group", input.Label); 730Assert.Equal("Location", input.Label);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
94Assert.Equal("Message", argument.Label);
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
177Assert.Equal("Artifact", input.Label);
Aspire.Hosting.Tests (43)
AddParameterTests.cs (11)
761Assert.Equal("test", input.Label); 793Assert.Equal("test", input.Label); 827Assert.Equal("secret", input.Label); 855Assert.Equal("Custom Label", input.Label); 936Assert.Equal("Custom Label", input.Label); 1002Assert.Equal("Custom Label", input.Label); 1018[nameof(InteractionInput.Label)] = "Worker Count", 1034Assert.Equal("Worker Count", input.Label); 1064Assert.Equal("api-key", input.Label); 1078[nameof(InteractionInput.Label)] = "", 1086Assert.Equal("worker-count", input.Label);
InteractionServiceTests.cs (19)
668Assert.Equal("Test Label", input.Label); 757Assert.Equal("Username", collection["Username"].Label); 758Assert.Equal("Password", collection["Password"].Label); 759Assert.Equal("Remember Me", collection["RememberMe"].Label); 768Assert.Equal("Username", usernameInput.Label); 804Assert.Equal("User Name", collection["UserName"].Label); 805Assert.Equal("Email Address", collection["EmailAddress"].Label); 806Assert.Null(collection["Age"].Label); // No label specified, should use EffectiveLabel 810Assert.Equal("User Name", collection[0].Label); 811Assert.Equal("Email Address", collection[1].Label); 812Assert.Null(collection[2].Label); 833Assert.Equal("Explicit", collection["ExplicitName"].Label); 834Assert.Equal("Another", collection["AnotherExplicit"].Label); 835Assert.Equal("Generated Label", collection["GeneratedLabel"].Label); 928Assert.Equal("!@#$%^&*()", collection["SpecialInput"].Label); 931Assert.Equal("", collection["EmptyLabel"].Label); 934Assert.Equal(" ", collection["WhitespaceLabel"].Label); 1140Assert.Equal("Email", emailInput.Label); 1141Assert.Equal("Age", ageInput.Label);
Orchestrator\ParameterProcessorTests.cs (13)
297Assert.Equal("param1", input.Label); 303Assert.Equal("param2", input.Label); 309Assert.Equal("secretParam", input.Label); 315Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.Label); 618Assert.Equal("param1", param1Input.Label); 624Assert.Equal("param2", param2Input.Label); 661Assert.Equal("secretParam", secretInput.Label); 696Assert.Equal("param1", paramInput.Label); 699Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 735Assert.Equal("param1", paramInput.Label); 738Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 1064Assert.Equal("testParam", valueInput.Label); 1327Assert.All(inputsInteraction.Inputs.Take(2), input => Assert.Equal("Custom Input", input.Label));
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
107var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 113var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (1)
InteractionCommands.cs (1)
203logger.LogInformation("Input: {Label} = {Value}", updatedInput.Label, updatedInput.Value);