184 writes to Label
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
170
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)
140
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)
240
Label
= InteractionStrings.ParametersInputsRememberLabel,
280
Label
= InteractionStrings.ParametersInputsDeleteLabel,
386
Label
= InteractionStrings.ParametersInputsDeleteLabel,
418
Label
= InteractionStrings.ParametersInputsRememberLabel,
ParameterResourceBuilderExtensions.cs (1)
268
Label
= GetOptionalString(options.Label) ?? parameter.Name,
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
276
Label
= AzureProvisioningStrings.TenantLabel,
297
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
318
Label
= AzureProvisioningStrings.ResourceGroupLabel,
336
Label
= AzureProvisioningStrings.LocationLabel,
358
Label
= AzureProvisioningStrings.LocationLabel,
376
Label
= AzureProvisioningStrings.ChangeResourceLocationConfirmDeleteLabel,
679
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
162
Label
= AzureProvisioningStrings.TenantLabel,
188
Label
= AzureProvisioningStrings.TenantLabel,
261
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
287
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
355
Label
= AzureProvisioningStrings.ResourceGroupLabel,
453
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
339
Label
= AzureProvisioningStrings.TenantLabel,
365
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
400
Label
= AzureProvisioningStrings.ResourceGroupLabel,
441
Label
= AzureProvisioningStrings.LocationLabel,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
813
Label
= "Custom Port Number",
AzureEnvironmentResourceExtensionsTests.cs (1)
4998
Label
= input.Label,
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
48
Label
= BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel,
62
Label
= BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel,
83
Label
= BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel,
106
Label
= BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel,
127
Label
= BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
48
Label
= BrowserCommandStrings.ConfigureTrackedBrowserScopeLabel,
62
Label
= BrowserCommandStrings.ConfigureTrackedBrowserBrowserLabel,
83
Label
= BrowserCommandStrings.ConfigureTrackedBrowserUserDataModeLabel,
106
Label
= BrowserCommandStrings.ConfigureTrackedBrowserProfileLabel,
127
Label
= BrowserCommandStrings.ConfigureTrackedBrowserSaveToUserSecretsLabel,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
757
Label
= "Migration Name",
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
330
Label
= "Message",
PromptAgent\PromptAgentBuilderExtensions.cs (1)
122
Label
= "Message",
Aspire.Hosting.Tests (56)
AddParameterTests.cs (5)
407
Label
= "Custom Label",
500
Label
= "Custom Label",
527
Label
= "Custom Label",
554
Label
= "Custom Label"
595
Label
= "Custom Label",
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
215
Label
= "Selector",
Dashboard\DashboardServiceTests.cs (4)
173
Label
= "Selector",
612
new 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)
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",
ResourceCommandServiceTests.cs (4)
953
Label
= "Selector",
1282
Label
= "Selector",
1409
Label
= "Selector",
1577
Label
= "Target",
ExternalServices.AppHost (1)
AppHost.cs (1)
15
Label
= p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
51
Label
= "Custom Input",
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
49
Label
= "Application Name",
57
Label
= "Application Version",
65
Label
= "SSL Certificate Type",
78
Label
= "More certificate details",
100
Label
= "Certificate file",
151
Label
= "Environment Name",
174
Label
= "Database Password",
189
Label
= "Region",
210
Label
= "Enable Verbose Logging",
224
Label
= "Instance Count",
239
Label
= "Strategy",
Stress.AppHost (73)
CommandResources.cs (47)
148
Label
= "Message",
156
Label
= "Count",
163
Label
= "Urgent",
205
Label
= "Message",
215
Label
= "Repeat",
223
Label
= "Shout",
231
Label
= "Flavor",
245
Label
= "Secret",
300
Label
= "Target",
310
Label
= "Mode",
324
Label
= "Timeout seconds",
332
Label
= "Require healthy",
391
Label
= "Category",
406
Label
= "Item",
449
Label
= "Quantity",
458
Label
= "Priority",
551
Label
= "Command",
579
Label
= "Input",
653
Label
= "Name",
662
Label
= "Input",
708
Label
= "Dataset",
722
Label
= "Customers",
754
Label
= "Filter",
788
Label
= "Job",
797
Label
= "Payload",
826
Label
= "Backup path",
835
Label
= "Container",
844
Label
= "Database",
873
Label
= "Container",
883
Label
= "Command",
893
Label
= "Working directory",
983
Label
= "Generate traces",
992
Label
= "Trace count",
1001
Label
= "Spans per trace",
1010
Label
= "Generate large trace",
1019
Label
= "Large trace span count",
1028
Label
= "Generate structured logs",
1036
Label
= "Structured log count",
1045
Label
= "Generate console logs",
1053
Label
= "Console log count",
1062
Label
= "Generate metrics",
1071
Label
= "Metric duration (hours)",
1080
Label
= "Metric dimension count",
1309
Label
= "Run ID",
1319
Label
= "Iterations",
1328
Label
= "Enabled",
1341
Label
= $"Item {i:00}",
InteractionCommands.cs (26)
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", Placeholder = "Enter name", Required = true, MaxLength = 50 },
240
new InteractionInput { Name = "Password", InputType = InputType.SecretText,
Label
= "Password", 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 },
297
Label
= "Custom choice",
345
Label
= "Dynamic",
355
Label
= "Dynamic custom choice",
436
Label
= "Custom choice",
454
Label
= "Dynamic",
487
new InteractionInput { Name = "Receipt", InputType = InputType.File,
Label
= "Receipt", Placeholder = "Upload receipt", Required = true },
574
Label
= $"Input {i + 1}",
607
Label
= "Tenant ID",
630
Label
= "Subscription ID",
669
Label
= "Resource group",
700
Label
= "Location",
994
Label
= "Configuration file",
1039
Label
= "Certificate files",
70 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)
1371
Label = input.
Label
,
IInteractionService.cs (2)
290
internal string EffectiveLabel => string.IsNullOrWhiteSpace(
Label
) ? Name :
Label
;
Aspire.Hosting.Azure.Tests (18)
AzureDeployerTests.cs (9)
63
Assert.Equal("Tenant ID", input.
Label
);
80
Assert.Equal("Subscription ID", input.
Label
);
98
Assert.Equal("Resource group", input.
Label
);
116
Assert.Equal("Location", input.
Label
);
761
Assert.Equal("unresolved-test-param", input.
Label
);
833
Assert.Equal("Custom Port Number", input.
Label
);
1024
Assert.Equal("dependent-param", input.
Label
);
1069
Assert.Equal("app-port", input.
Label
);
1917
var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.
Label
));
AzureEnvironmentResourceExtensionsTests.cs (1)
4998
Label = input.
Label
,
ProvisioningContextProviderTests.cs (8)
355
Assert.Equal("Tenant ID", input.
Label
);
362
Assert.Equal("Subscription ID", input.
Label
);
369
Assert.Equal("Resource group", input.
Label
);
376
Assert.Equal("Location", input.
Label
);
508
Assert.Equal("Tenant ID", input.
Label
);
515
Assert.Equal("Subscription ID", input.
Label
);
523
Assert.Equal("Resource group", input.
Label
);
530
Assert.Equal("Location", input.
Label
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
90
Assert.Equal("Message", argument.
Label
);
Aspire.Hosting.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
177
Assert.Equal("Artifact", input.
Label
);
Aspire.Hosting.Tests (42)
AddParameterTests.cs (11)
430
Assert.Equal("test", input.
Label
);
449
Assert.Equal("test", input.
Label
);
483
Assert.Equal("secret", input.
Label
);
511
Assert.Equal("Custom Label", input.
Label
);
539
Assert.Equal("Custom Label", input.
Label
);
605
Assert.Equal("Custom Label", input.
Label
);
621
[nameof(InteractionInput.
Label
)] = "Worker Count",
637
Assert.Equal("Worker Count", input.
Label
);
667
Assert.Equal("api-key", input.
Label
);
681
[nameof(InteractionInput.
Label
)] = "",
689
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 (12)
220
Assert.Equal("param1", input.
Label
);
226
Assert.Equal("param2", input.
Label
);
232
Assert.Equal("secretParam", input.
Label
);
238
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.
Label
);
457
Assert.Equal("param1", param1Input.
Label
);
463
Assert.Equal("param2", param2Input.
Label
);
500
Assert.Equal("secretParam", secretInput.
Label
);
535
Assert.Equal("param1", paramInput.
Label
);
538
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
574
Assert.Equal("param1", paramInput.
Label
);
577
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
903
Assert.Equal("testParam", valueInput.
Label
);
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
109
var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Name");
115
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);