184 writes to Label
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
170Label = Name,
ApplicationModel\ResourceCommandService.cs (1)
803Label = input.Label,
Ats\InteractionExports.cs (2)
259Label = input.Label, 312Label = options?.Label,
InteractionService.cs (1)
140return 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)
240Label = InteractionStrings.ParametersInputsRememberLabel, 280Label = InteractionStrings.ParametersInputsDeleteLabel, 386Label = InteractionStrings.ParametersInputsDeleteLabel, 418Label = InteractionStrings.ParametersInputsRememberLabel,
ParameterResourceBuilderExtensions.cs (1)
268Label = GetOptionalString(options.Label) ?? parameter.Name,
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
276Label = AzureProvisioningStrings.TenantLabel, 297Label = AzureProvisioningStrings.SubscriptionIdLabel, 318Label = AzureProvisioningStrings.ResourceGroupLabel, 336Label = AzureProvisioningStrings.LocationLabel, 358Label = AzureProvisioningStrings.LocationLabel, 376Label = AzureProvisioningStrings.ChangeResourceLocationConfirmDeleteLabel, 679Label = AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
162Label = AzureProvisioningStrings.TenantLabel, 188Label = AzureProvisioningStrings.TenantLabel, 261Label = AzureProvisioningStrings.SubscriptionIdLabel, 287Label = AzureProvisioningStrings.SubscriptionIdLabel, 355Label = AzureProvisioningStrings.ResourceGroupLabel, 453Label = AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
339Label = AzureProvisioningStrings.TenantLabel, 365Label = AzureProvisioningStrings.SubscriptionIdLabel, 400Label = AzureProvisioningStrings.ResourceGroupLabel, 441Label = AzureProvisioningStrings.LocationLabel,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
813Label = "Custom Port Number",
AzureEnvironmentResourceExtensionsTests.cs (1)
4998Label = input.Label,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
48Label = BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel, 62Label = BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel, 83Label = BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel, 106Label = BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel, 127Label = BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
48Label = BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel, 62Label = BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel, 83Label = BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel, 106Label = BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel, 127Label = BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
757Label = "Migration Name",
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
330Label = "Message",
PromptAgent\PromptAgentBuilderExtensions.cs (1)
122Label = "Message",
Aspire.Hosting.Tests (56)
AddParameterTests.cs (5)
407Label = "Custom Label", 500Label = "Custom Label", 527Label = "Custom Label", 554Label = "Custom Label" 595Label = "Custom Label",
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
215Label = "Selector",
Dashboard\DashboardServiceTests.cs (4)
173Label = "Selector", 612new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 822? new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 } 823: new InteractionInput { Name = "TestInput", Label = "Test Input", InputType = inputType };
InteractionServiceTests.cs (42)
362var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 399var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 422var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 445var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] }; 466var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number }; 489var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean }; 522var input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength }; 557Label = "Test Label", 577Label = "Test Label", 595Label = "Test Label", 630Label = "Test Label", 643new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 644new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText }, 645new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean } 683new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 684new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 717new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 718new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 719new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 740new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 741new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 755new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 756new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 803new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 804new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 805new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 840new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 856new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 857new InteractionInput { Name = "Password", Label = "Password", InputType = InputType.SecretText } 963new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 1018new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 1019new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1073Label = "Choice", 1086new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1106Label = "Choice", 1119new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true } 1352var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1381var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1406var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File }; 1472var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true }; 1495var input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false }; 1522Label = "File",
ResourceCommandServiceTests.cs (4)
953Label = "Selector", 1282Label = "Selector", 1409Label = "Selector", 1577Label = "Target",
ExternalServices.AppHost (1)
AppHost.cs (1)
15Label = p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
51Label = "Custom Input",
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
49Label = "Application Name", 57Label = "Application Version", 65Label = "SSL Certificate Type", 78Label = "More certificate details", 100Label = "Certificate file", 151Label = "Environment Name", 174Label = "Database Password", 189Label = "Region", 210Label = "Enable Verbose Logging", 224Label = "Instance Count", 239Label = "Strategy",
Stress.AppHost (73)
CommandResources.cs (47)
148Label = "Message", 156Label = "Count", 163Label = "Urgent", 205Label = "Message", 215Label = "Repeat", 223Label = "Shout", 231Label = "Flavor", 245Label = "Secret", 300Label = "Target", 310Label = "Mode", 324Label = "Timeout seconds", 332Label = "Require healthy", 391Label = "Category", 406Label = "Item", 449Label = "Quantity", 458Label = "Priority", 551Label = "Command", 579Label = "Input", 653Label = "Name", 662Label = "Input", 708Label = "Dataset", 722Label = "Customers", 754Label = "Filter", 788Label = "Job", 797Label = "Payload", 826Label = "Backup path", 835Label = "Container", 844Label = "Database", 873Label = "Container", 883Label = "Command", 893Label = "Working directory", 983Label = "Generate traces", 992Label = "Trace count", 1001Label = "Spans per trace", 1010Label = "Generate large trace", 1019Label = "Large trace span count", 1028Label = "Generate structured logs", 1036Label = "Structured log count", 1045Label = "Generate console logs", 1053Label = "Console log count", 1062Label = "Generate metrics", 1071Label = "Metric duration (hours)", 1080Label = "Metric dimension count", 1309Label = "Run ID", 1319Label = "Iterations", 1328Label = "Enabled", 1341Label = $"Item {i:00}",
InteractionCommands.cs (26)
59var 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." }; 60var 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 }; 72var 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 }; 77Label = "Choice with long content", 88Label = "Choice with long content", 147Label = "Dinner", 160Label = "Requirements", 199Label = "Dinner", 227Label = "Requirements", 236var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 239new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 240new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 244new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 297Label = "Custom choice", 345Label = "Dynamic", 355Label = "Dynamic custom choice", 436Label = "Custom choice", 454Label = "Dynamic", 487new InteractionInput { Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true }, 574Label = $"Input {i + 1}", 607Label = "Tenant ID", 630Label = "Subscription ID", 669Label = "Resource group", 700Label = "Location", 994Label = "Configuration file", 1039Label = "Certificate files",
70 references to Label
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
803Label = input.Label,
Ats\InteractionExports.cs (1)
259Label = input.Label,
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1371Label = input.Label,
IInteractionService.cs (2)
290internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ? Name : Label;
Aspire.Hosting.Azure.Tests (18)
AzureDeployerTests.cs (9)
63Assert.Equal("Tenant ID", input.Label); 80Assert.Equal("Subscription ID", input.Label); 98Assert.Equal("Resource group", input.Label); 116Assert.Equal("Location", input.Label); 761Assert.Equal("unresolved-test-param", input.Label); 833Assert.Equal("Custom Port Number", input.Label); 1024Assert.Equal("dependent-param", input.Label); 1069Assert.Equal("app-port", input.Label); 1917var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.Label));
AzureEnvironmentResourceExtensionsTests.cs (1)
4998Label = input.Label,
ProvisioningContextProviderTests.cs (8)
355Assert.Equal("Tenant ID", input.Label); 362Assert.Equal("Subscription ID", input.Label); 369Assert.Equal("Resource group", input.Label); 376Assert.Equal("Location", input.Label); 508Assert.Equal("Tenant ID", input.Label); 515Assert.Equal("Subscription ID", input.Label); 523Assert.Equal("Resource group", input.Label); 530Assert.Equal("Location", input.Label);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
90Assert.Equal("Message", argument.Label);
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
177Assert.Equal("Artifact", input.Label);
Aspire.Hosting.Tests (42)
AddParameterTests.cs (11)
430Assert.Equal("test", input.Label); 449Assert.Equal("test", input.Label); 483Assert.Equal("secret", input.Label); 511Assert.Equal("Custom Label", input.Label); 539Assert.Equal("Custom Label", input.Label); 605Assert.Equal("Custom Label", input.Label); 621[nameof(InteractionInput.Label)] = "Worker Count", 637Assert.Equal("Worker Count", input.Label); 667Assert.Equal("api-key", input.Label); 681[nameof(InteractionInput.Label)] = "", 689Assert.Equal("worker-count", input.Label);
InteractionServiceTests.cs (19)
564Assert.Equal("Test Label", input.Label); 653Assert.Equal("Username", collection["Username"].Label); 654Assert.Equal("Password", collection["Password"].Label); 655Assert.Equal("Remember Me", collection["RememberMe"].Label); 664Assert.Equal("Username", usernameInput.Label); 700Assert.Equal("User Name", collection["UserName"].Label); 701Assert.Equal("Email Address", collection["EmailAddress"].Label); 702Assert.Null(collection["Age"].Label); // No label specified, should use EffectiveLabel 706Assert.Equal("User Name", collection[0].Label); 707Assert.Equal("Email Address", collection[1].Label); 708Assert.Null(collection[2].Label); 729Assert.Equal("Explicit", collection["ExplicitName"].Label); 730Assert.Equal("Another", collection["AnotherExplicit"].Label); 731Assert.Equal("Generated Label", collection["GeneratedLabel"].Label); 824Assert.Equal("!@#$%^&*()", collection["SpecialInput"].Label); 827Assert.Equal("", collection["EmptyLabel"].Label); 830Assert.Equal(" ", collection["WhitespaceLabel"].Label); 1036Assert.Equal("Email", emailInput.Label); 1037Assert.Equal("Age", ageInput.Label);
Orchestrator\ParameterProcessorTests.cs (12)
220Assert.Equal("param1", input.Label); 226Assert.Equal("param2", input.Label); 232Assert.Equal("secretParam", input.Label); 238Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.Label); 457Assert.Equal("param1", param1Input.Label); 463Assert.Equal("param2", param2Input.Label); 500Assert.Equal("secretParam", secretInput.Label); 535Assert.Equal("param1", paramInput.Label); 538Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 574Assert.Equal("param1", paramInput.Label); 577Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.Label); 903Assert.Equal("testParam", valueInput.Label);
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
109var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 115var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (1)
InteractionCommands.cs (1)
187logger.LogInformation("Input: {Label} = {Value}", updatedInput.Label, updatedInput.Value);