192 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)
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)
237
Label
= InteractionStrings.ParametersInputsRememberLabel,
277
Label
= InteractionStrings.ParametersInputsDeleteLabel,
383
Label
= InteractionStrings.ParametersInputsDeleteLabel,
415
Label
= InteractionStrings.ParametersInputsRememberLabel,
ParameterResourceBuilderExtensions.cs (1)
266
Label
= GetOptionalString(options.Label) ?? parameter.Name,
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
273
Label
= AzureProvisioningStrings.TenantLabel,
294
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
315
Label
= AzureProvisioningStrings.ResourceGroupLabel,
333
Label
= AzureProvisioningStrings.LocationLabel,
355
Label
= AzureProvisioningStrings.LocationLabel,
373
Label
= AzureProvisioningStrings.ChangeResourceLocationConfirmDeleteLabel,
676
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
159
Label
= AzureProvisioningStrings.TenantLabel,
185
Label
= AzureProvisioningStrings.TenantLabel,
258
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
284
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
352
Label
= AzureProvisioningStrings.ResourceGroupLabel,
450
Label
= AzureProvisioningStrings.LocationLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
337
Label
= AzureProvisioningStrings.TenantLabel,
363
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
398
Label
= AzureProvisioningStrings.ResourceGroupLabel,
439
Label
= AzureProvisioningStrings.LocationLabel,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
872
Label
= "Custom Port Number",
AzureEnvironmentResourceExtensionsTests.cs (1)
5007
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)
843
Label
= "Migration Name",
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
332
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)
178
Label
= "Selector",
731
new InteractionInput { Name = "Input", InputType = InputType.Text,
Label
= "Input" });
941
? new InteractionInput { Name = "TestInput",
Label
= "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
942
: 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)
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)
51
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)
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",
1060
Label
= "Generate traces",
1069
Label
= "Trace count",
1078
Label
= "Spans per trace",
1087
Label
= "Generate large trace",
1096
Label
= "Large trace span count",
1105
Label
= "Generate structured logs",
1113
Label
= "Structured log count",
1122
Label
= "Generate console logs",
1130
Label
= "Console log count",
1139
Label
= "Generate metrics",
1148
Label
= "Metric duration (hours)",
1157
Label
= "Metric dimension count",
1386
Label
= "Run ID",
1396
Label
= "Iterations",
1405
Label
= "Enabled",
1418
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",
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)
1393
Label = input.
Label
,
IInteractionService.cs (2)
353
internal string EffectiveLabel => string.IsNullOrWhiteSpace(
Label
) ? Name :
Label
;
Aspire.Hosting.Azure.Tests (18)
AzureDeployerTests.cs (9)
60
Assert.Equal("Tenant ID", input.
Label
);
77
Assert.Equal("Subscription ID", input.
Label
);
95
Assert.Equal("Resource group", input.
Label
);
113
Assert.Equal("Location", input.
Label
);
820
Assert.Equal("unresolved-test-param", input.
Label
);
892
Assert.Equal("Custom Port Number", input.
Label
);
1083
Assert.Equal("dependent-param", input.
Label
);
1128
Assert.Equal("app-port", input.
Label
);
1980
var parameterNames = string.Join(", ", interaction.Inputs.Select(i => i.
Label
));
AzureEnvironmentResourceExtensionsTests.cs (1)
5007
Label = input.
Label
,
ProvisioningContextProviderTests.cs (8)
352
Assert.Equal("Tenant ID", input.
Label
);
359
Assert.Equal("Subscription ID", input.
Label
);
366
Assert.Equal("Resource group", input.
Label
);
373
Assert.Equal("Location", input.
Label
);
505
Assert.Equal("Tenant ID", input.
Label
);
512
Assert.Equal("Subscription ID", input.
Label
);
520
Assert.Equal("Resource group", input.
Label
);
527
Assert.Equal("Location", input.
Label
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
91
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)
218
Assert.Equal("param1", input.
Label
);
224
Assert.Equal("param2", input.
Label
);
230
Assert.Equal("secretParam", input.
Label
);
236
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.
Label
);
455
Assert.Equal("param1", param1Input.
Label
);
461
Assert.Equal("param2", param2Input.
Label
);
498
Assert.Equal("secretParam", secretInput.
Label
);
533
Assert.Equal("param1", paramInput.
Label
);
536
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
572
Assert.Equal("param1", paramInput.
Label
);
575
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, saveCheckbox.
Label
);
901
Assert.Equal("testParam", valueInput.
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);