204 writes to Label
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
605
Label
= Name,
ApplicationModel\ResourceCommandService.cs (1)
803
Label
= input.Label,
Ats\InteractionExports.cs (2)
259
Label
= input.Label,
312
Label
= options?.Label,
InteractionService.cs (1)
144
return 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)
347
Label
= InteractionStrings.ParametersInputsRememberLabel,
387
Label
= InteractionStrings.ParametersInputsDeleteLabel,
497
Label
= InteractionStrings.ParametersInputsDeleteLabel,
529
Label
= InteractionStrings.ParametersInputsRememberLabel,
ParameterResourceBuilderExtensions.cs (1)
298
Label
= GetOptionalString(options.Label) ?? parameter.Name,
Aspire.Hosting.Azure (20)
AzureProvisioningController.cs (8)
275
Label
= AzureProvisioningStrings.TenantLabel,
296
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
317
Label
= AzureProvisioningStrings.ResourceGroupLabel,
335
Label
= AzureProvisioningStrings.LocationLabel,
355
Label
= AzureProvisioningStrings.TenantResourceSuffixLabel,
380
Label
= AzureProvisioningStrings.LocationLabel,
398
Label
= AzureProvisioningStrings.ChangeResourceLocationConfirmDeleteLabel,
702
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (7)
125
Label
= AzureProvisioningStrings.TenantResourceSuffixLabel,
193
Label
= AzureProvisioningStrings.TenantLabel,
219
Label
= AzureProvisioningStrings.TenantLabel,
292
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
318
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
386
Label
= AzureProvisioningStrings.ResourceGroupLabel,
484
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (5)
350
Label
= AzureProvisioningStrings.TenantLabel,
376
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
411
Label
= AzureProvisioningStrings.ResourceGroupLabel,
452
Label
= AzureProvisioningStrings.LocationLabel,
493
Label
= AzureProvisioningStrings.TenantResourceSuffixLabel,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
1061
Label
= "Custom Port Number",
AzureEnvironmentResourceExtensionsTests.cs (1)
5328
Label
= input.Label,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
47
Label
= BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel,
61
Label
= BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel,
82
Label
= BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel,
105
Label
= BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel,
126
Label
= BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
47
Label
= BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel,
61
Label
= BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel,
82
Label
= BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel,
105
Label
= BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel,
126
Label
= BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
838
Label
= "Migration Name",
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
332
Label
= "Message",
PromptAgent\PromptAgentBuilderExtensions.cs (1)
122
Label
= "Message",
Aspire.Hosting.Tests (60)
AddParameterTests.cs (5)
706
Label
= "Custom Label",
812
Label
= "Custom Label",
892
Label
= "Custom Label",
919
Label
= "Custom Label"
960
Label
= "Custom Label",
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
215
Label
= "Selector",
Dashboard\DashboardServiceTests.cs (4)
178
Label
= "Selector",
767
new InteractionInput { Name = "Input", InputType = InputType.Text,
Label
= "Input" });
977
? new InteractionInput { Name = "TestInput",
Label
= "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
978
: new InteractionInput { Name = "TestInput",
Label
= "Test Input", InputType = inputType };
InteractionServiceTests.cs (42)
362
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, };
399
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, Required = true };
422
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
445
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
466
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Number };
489
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Boolean };
522
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = inputType, MaxLength = maxLength };
557
Label
= "Test Label",
577
Label
= "Test Label",
595
Label
= "Test Label",
630
Label
= "Test Label",
643
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
644
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText },
645
new InteractionInput { Name = "RememberMe",
Label
= "Remember Me", InputType = InputType.Boolean }
683
new InteractionInput { Name = "UserName",
Label
= "User Name", InputType = InputType.Text },
684
new InteractionInput { Name = "EmailAddress",
Label
= "Email Address", InputType = InputType.Text },
717
new InteractionInput { Name = "ExplicitName",
Label
= "Explicit", InputType = InputType.Text },
718
new InteractionInput { Name = "GeneratedLabel",
Label
= "Generated Label", InputType = InputType.Text },
719
new InteractionInput { Name = "AnotherExplicit",
Label
= "Another", InputType = InputType.Text }
740
new InteractionInput { Name = "Duplicate",
Label
= "First", InputType = InputType.Text },
741
new InteractionInput { Name = "Duplicate",
Label
= "Second", InputType = InputType.Text }
755
new InteractionInput { Name = "Username",
Label
= "First", InputType = InputType.Text },
756
new InteractionInput { Name = "USERNAME",
Label
= "Second", InputType = InputType.Text }
803
new InteractionInput { Name = "SpecialInput",
Label
= "!@#$%^&*()", InputType = InputType.Text },
804
new InteractionInput { Name = "EmptyLabel",
Label
= "", InputType = InputType.Text },
805
new InteractionInput { Name = "WhitespaceLabel",
Label
= " ", InputType = InputType.Text }
840
new InteractionInput { Name = "Valid",
Label
= "Valid", InputType = InputType.Text }
856
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
857
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText }
963
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
1018
new InteractionInput { Name = "Email",
Label
= "Email", InputType = InputType.Text, Required = true },
1019
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1073
Label
= "Choice",
1086
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1106
Label
= "Choice",
1119
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1352
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = true };
1381
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File };
1406
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File };
1472
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = true };
1495
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = false };
1522
Label
= "File",
Orchestrator\ParameterProcessorTests.cs (4)
1316
Label
= "Custom Input"
1348
Label
= "Region"
1355
Label
= "Zone",
1393
Label
= "Secret"
ResourceCommandServiceTests.cs (4)
954
Label
= "Selector",
1283
Label
= "Selector",
1512
Label
= "Selector",
1680
Label
= "Target",
ExternalServices.AppHost (1)
AppHost.cs (1)
15
Label
= p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
56
Label
= "Custom Input",
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
47
Label
= "Application Name",
55
Label
= "Application Version",
63
Label
= "SSL Certificate Type",
76
Label
= "More certificate details",
98
Label
= "Certificate file",
149
Label
= "Environment Name",
172
Label
= "Database Password",
187
Label
= "Region",
208
Label
= "Enable Verbose Logging",
222
Label
= "Instance Count",
237
Label
= "Strategy",
Stress.AppHost (80)
CommandResources.cs (47)
149
Label
= "Message",
157
Label
= "Count",
164
Label
= "Urgent",
206
Label
= "Message",
216
Label
= "Repeat",
224
Label
= "Shout",
232
Label
= "Flavor",
246
Label
= "Secret",
301
Label
= "Target",
311
Label
= "Mode",
325
Label
= "Timeout seconds",
333
Label
= "Require healthy",
392
Label
= "Category",
407
Label
= "Item",
450
Label
= "Quantity",
459
Label
= "Priority",
552
Label
= "Command",
580
Label
= "Input",
654
Label
= "Name",
663
Label
= "Input",
709
Label
= "Dataset",
723
Label
= "Customers",
755
Label
= "Filter",
789
Label
= "Job",
798
Label
= "Payload",
827
Label
= "Backup path",
836
Label
= "Container",
845
Label
= "Database",
874
Label
= "Container",
884
Label
= "Command",
894
Label
= "Working directory",
1061
Label
= "Generate traces",
1070
Label
= "Trace count",
1079
Label
= "Spans per trace",
1088
Label
= "Generate large trace",
1097
Label
= "Large trace span count",
1106
Label
= "Generate structured logs",
1114
Label
= "Structured log count",
1123
Label
= "Generate console logs",
1131
Label
= "Console log count",
1140
Label
= "Generate metrics",
1149
Label
= "Metric duration (hours)",
1158
Label
= "Metric dimension count",
1387
Label
= "Run ID",
1397
Label
= "Iterations",
1406
Label
= "Enabled",
1419
Label
= $"Item {i:00}",
InteractionCommands.cs (33)
59
var 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." };
60
var 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 };
72
var 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 };
77
Label
= "Choice with long content",
88
Label
= "Choice with long content",
147
Label
= "Dinner",
160
Label
= "Requirements",
199
Label
= "Dinner",
227
Label
= "Requirements",
236
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number,
Label
= "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
239
new 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 },
240
new InteractionInput { Name = "Password", InputType = InputType.SecretText,
Label
= "Password", Description = "The password for the reservation. Maximum 20 characters.", Placeholder = "Enter password", Required = true, MaxLength = 20 },
244
new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean,
Label
= "Remember me", Placeholder = "What does this do?", Required = true },
287
Label
= "Text",
296
Label
= "Password",
305
Label
= "Choice",
316
Label
= "Custom choice",
327
Label
= "Number of people",
336
Label
= "Remember me",
345
Label
= "Attachment",
378
Label
= "Custom choice",
426
Label
= "Dynamic",
436
Label
= "Dynamic custom choice",
517
Label
= "Custom choice",
535
Label
= "Dynamic",
568
new InteractionInput { Name = "Receipt", InputType = InputType.File,
Label
= "Receipt", Placeholder = "Upload receipt", Required = true },
655
Label
= $"Input {i + 1}",
688
Label
= "Tenant ID",
711
Label
= "Subscription ID",
750
Label
= "Resource group",
781
Label
= "Location",
1075
Label
= "Configuration file",
1120
Label
= "Certificate files",
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
300
Label
= "Upper limit",
TestShop.AppHost (5)
AppHost.cs (5)
29
Label
= parameter.Name,
45
Label
= parameter.Name,
62
Label
= parameter.Name,
73
Label
= parameter.Name,
83
Label
= parameter.Name,
73 references to Label
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
803
Label = input.
Label
,
Ats\InteractionExports.cs (1)
259
Label = input.
Label
,
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1394
Label = input.
Label
,
IInteractionService.cs (2)
353
internal string EffectiveLabel => string.IsNullOrWhiteSpace(
Label
) ? Name :
Label
;
Aspire.Hosting.Azure.Tests (20)
AzureDeployerTests.cs (9)
249
Assert.Equal("Tenant ID", input.
Label
);
266
Assert.Equal("Subscription ID", input.
Label
);
284
Assert.Equal("Resource group", input.
Label
);
302
Assert.Equal("Location", input.
Label
);
1009
Assert.Equal("unresolved-test-param", input.
Label
);
1081
Assert.Equal("Custom Port Number", input.
Label
);
1272
Assert.Equal("dependent-param", input.
Label
);
1317
Assert.Equal("app-port", input.
Label
);
2169
var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.
Label
));
AzureEnvironmentResourceExtensionsTests.cs (1)
5328
Label = input.
Label
,
ProvisioningContextProviderTests.cs (10)
42
Assert.Equal(AzureProvisioningStrings.TenantResourceSuffixLabel, input.
Label
);
166
Assert.Equal(AzureProvisioningStrings.TenantResourceSuffixLabel, input.
Label
);
553
Assert.Equal("Tenant ID", input.
Label
);
560
Assert.Equal("Subscription ID", input.
Label
);
567
Assert.Equal("Resource group", input.
Label
);
574
Assert.Equal("Location", input.
Label
);
708
Assert.Equal("Tenant ID", input.
Label
);
715
Assert.Equal("Subscription ID", input.
Label
);
723
Assert.Equal("Resource group", input.
Label
);
730
Assert.Equal("Location", input.
Label
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
94
Assert.Equal("Message", argument.
Label
);
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
177
Assert.Equal("Artifact", input.
Label
);
Aspire.Hosting.Tests (43)
AddParameterTests.cs (11)
729
Assert.Equal("test", input.
Label
);
761
Assert.Equal("test", input.
Label
);
795
Assert.Equal("secret", input.
Label
);
823
Assert.Equal("Custom Label", input.
Label
);
904
Assert.Equal("Custom Label", input.
Label
);
970
Assert.Equal("Custom Label", input.
Label
);
986
[nameof(InteractionInput.
Label
)] = "Worker Count",
1002
Assert.Equal("Worker Count", input.
Label
);
1032
Assert.Equal("api-key", input.
Label
);
1046
[nameof(InteractionInput.
Label
)] = "",
1054
Assert.Equal("worker-count", input.
Label
);
InteractionServiceTests.cs (19)
564
Assert.Equal("Test Label", input.
Label
);
653
Assert.Equal("Username", collection["Username"].
Label
);
654
Assert.Equal("Password", collection["Password"].
Label
);
655
Assert.Equal("Remember Me", collection["RememberMe"].
Label
);
664
Assert.Equal("Username", usernameInput.
Label
);
700
Assert.Equal("User Name", collection["UserName"].
Label
);
701
Assert.Equal("Email Address", collection["EmailAddress"].
Label
);
702
Assert.Null(collection["Age"].
Label
); // No label specified, should use EffectiveLabel
706
Assert.Equal("User Name", collection[0].
Label
);
707
Assert.Equal("Email Address", collection[1].
Label
);
708
Assert.Null(collection[2].
Label
);
729
Assert.Equal("Explicit", collection["ExplicitName"].
Label
);
730
Assert.Equal("Another", collection["AnotherExplicit"].
Label
);
731
Assert.Equal("Generated Label", collection["GeneratedLabel"].
Label
);
824
Assert.Equal("!@#$%^&*()", collection["SpecialInput"].
Label
);
827
Assert.Equal("", collection["EmptyLabel"].
Label
);
830
Assert.Equal(" ", collection["WhitespaceLabel"].
Label
);
1036
Assert.Equal("Email", emailInput.
Label
);
1037
Assert.Equal("Age", ageInput.
Label
);
Orchestrator\ParameterProcessorTests.cs (13)
297
Assert.Equal("param1", input.
Label
);
303
Assert.Equal("param2", input.
Label
);
309
Assert.Equal("secretParam", input.
Label
);
315
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.
Label
);
618
Assert.Equal("param1", param1Input.
Label
);
624
Assert.Equal("param2", param2Input.
Label
);
661
Assert.Equal("secretParam", secretInput.
Label
);
696
Assert.Equal("param1", paramInput.
Label
);
699
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
735
Assert.Equal("param1", paramInput.
Label
);
738
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
1064
Assert.Equal("testParam", valueInput.
Label
);
1327
Assert.All(inputsInteraction.Inputs.Take(2), input => Assert.Equal("Custom Input", input.
Label
));
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
107
var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Name");
113
var versionInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Version");
Stress.AppHost (1)
InteractionCommands.cs (1)
187
logger.LogInformation("Input: {Label} = {Value}", updatedInput.
Label
, updatedInput.Value);