211 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)
151
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,
559
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)
5353
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 (67)
AddParameterTests.cs (5)
738
Label
= "Custom Label",
844
Label
= "Custom Label",
924
Label
= "Custom Label",
951
Label
= "Custom Label"
992
Label
= "Custom Label",
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
217
Label
= "Selector",
Dashboard\DashboardServiceTests.cs (4)
178
Label
= "Selector",
771
new 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)
466
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, };
503
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, Required = true };
526
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
549
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
570
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Number };
593
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Boolean };
626
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = inputType, MaxLength = maxLength };
661
Label
= "Test Label",
681
Label
= "Test Label",
699
Label
= "Test Label",
734
Label
= "Test Label",
747
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
748
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText },
749
new InteractionInput { Name = "RememberMe",
Label
= "Remember Me", InputType = InputType.Boolean }
787
new InteractionInput { Name = "UserName",
Label
= "User Name", InputType = InputType.Text },
788
new InteractionInput { Name = "EmailAddress",
Label
= "Email Address", InputType = InputType.Text },
821
new InteractionInput { Name = "ExplicitName",
Label
= "Explicit", InputType = InputType.Text },
822
new InteractionInput { Name = "GeneratedLabel",
Label
= "Generated Label", InputType = InputType.Text },
823
new InteractionInput { Name = "AnotherExplicit",
Label
= "Another", InputType = InputType.Text }
844
new InteractionInput { Name = "Duplicate",
Label
= "First", InputType = InputType.Text },
845
new InteractionInput { Name = "Duplicate",
Label
= "Second", InputType = InputType.Text }
859
new InteractionInput { Name = "Username",
Label
= "First", InputType = InputType.Text },
860
new InteractionInput { Name = "USERNAME",
Label
= "Second", InputType = InputType.Text }
907
new InteractionInput { Name = "SpecialInput",
Label
= "!@#$%^&*()", InputType = InputType.Text },
908
new InteractionInput { Name = "EmptyLabel",
Label
= "", InputType = InputType.Text },
909
new InteractionInput { Name = "WhitespaceLabel",
Label
= " ", InputType = InputType.Text }
944
new InteractionInput { Name = "Valid",
Label
= "Valid", InputType = InputType.Text }
960
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
961
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText }
1067
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
1122
new InteractionInput { Name = "Email",
Label
= "Email", InputType = InputType.Text, Required = true },
1123
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1177
Label
= "Choice",
1190
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1210
Label
= "Choice",
1223
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
1457
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = true };
1486
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File };
1511
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File };
1577
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = true };
1600
var input = new InteractionInput { Name = "File",
Label
= "File", InputType = InputType.File, Required = false };
1627
Label
= "File",
Orchestrator\ParameterProcessorTests.cs (11)
1316
Label
= "Custom Input"
1348
Label
= "Region"
1355
Label
= "Zone",
1394
Label
= "Region"
1402
Label
= "Zone",
1436
Label
= "Region",
1489
Label
= "Value"
1496
Label
= "Zone",
1517
static InteractionInput CreateInput(string name) => new() { Name = name, InputType = InputType.Text,
Label
= name };
1531
Label
= "Zone",
1573
Label
= "Secret"
ResourceCommandServiceTests.cs (4)
955
Label
= "Selector",
1284
Label
= "Selector",
1514
Label
= "Selector",
1682
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)
75
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." };
76
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 };
88
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 };
93
Label
= "Choice with long content",
104
Label
= "Choice with long content",
163
Label
= "Dinner",
176
Label
= "Requirements",
215
Label
= "Dinner",
243
Label
= "Requirements",
252
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number,
Label
= "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
255
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 },
256
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 },
260
new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean,
Label
= "Remember me", Placeholder = "What does this do?", Required = true },
303
Label
= "Text",
312
Label
= "Password",
321
Label
= "Choice",
332
Label
= "Custom choice",
343
Label
= "Number of people",
352
Label
= "Remember me",
361
Label
= "Attachment",
394
Label
= "Custom choice",
442
Label
= "Dynamic",
452
Label
= "Dynamic custom choice",
533
Label
= "Custom choice",
551
Label
= "Dynamic",
584
new InteractionInput { Name = "Receipt", InputType = InputType.File,
Label
= "Receipt", Placeholder = "Upload receipt", Required = true },
671
Label
= $"Input {i + 1}",
704
Label
= "Tenant ID",
727
Label
= "Subscription ID",
766
Label
= "Resource group",
797
Label
= "Location",
1091
Label
= "Configuration file",
1136
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)
1395
Label = input.
Label
,
IInteractionService.cs (2)
358
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)
5353
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)
761
Assert.Equal("test", input.
Label
);
793
Assert.Equal("test", input.
Label
);
827
Assert.Equal("secret", input.
Label
);
855
Assert.Equal("Custom Label", input.
Label
);
936
Assert.Equal("Custom Label", input.
Label
);
1002
Assert.Equal("Custom Label", input.
Label
);
1018
[nameof(InteractionInput.
Label
)] = "Worker Count",
1034
Assert.Equal("Worker Count", input.
Label
);
1064
Assert.Equal("api-key", input.
Label
);
1078
[nameof(InteractionInput.
Label
)] = "",
1086
Assert.Equal("worker-count", input.
Label
);
InteractionServiceTests.cs (19)
668
Assert.Equal("Test Label", input.
Label
);
757
Assert.Equal("Username", collection["Username"].
Label
);
758
Assert.Equal("Password", collection["Password"].
Label
);
759
Assert.Equal("Remember Me", collection["RememberMe"].
Label
);
768
Assert.Equal("Username", usernameInput.
Label
);
804
Assert.Equal("User Name", collection["UserName"].
Label
);
805
Assert.Equal("Email Address", collection["EmailAddress"].
Label
);
806
Assert.Null(collection["Age"].
Label
); // No label specified, should use EffectiveLabel
810
Assert.Equal("User Name", collection[0].
Label
);
811
Assert.Equal("Email Address", collection[1].
Label
);
812
Assert.Null(collection[2].
Label
);
833
Assert.Equal("Explicit", collection["ExplicitName"].
Label
);
834
Assert.Equal("Another", collection["AnotherExplicit"].
Label
);
835
Assert.Equal("Generated Label", collection["GeneratedLabel"].
Label
);
928
Assert.Equal("!@#$%^&*()", collection["SpecialInput"].
Label
);
931
Assert.Equal("", collection["EmptyLabel"].
Label
);
934
Assert.Equal(" ", collection["WhitespaceLabel"].
Label
);
1140
Assert.Equal("Email", emailInput.
Label
);
1141
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)
203
logger.LogInformation("Input: {Label} = {Value}", updatedInput.
Label
, updatedInput.Value);