68 writes to Label
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
120
Label
= Name,
InteractionService.cs (1)
77
return await PromptInputAsync(title, message, new InteractionInput { Name = inputLabel, InputType = InputType.Text,
Label
= inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
288
Label
= InteractionStrings.ParametersInputsRememberLabel
Aspire.Hosting.Azure (9)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
167
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
193
Label
= AzureProvisioningStrings.SubscriptionIdLabel,
284
Label
= AzureProvisioningStrings.LocationLabel,
292
Label
= AzureProvisioningStrings.ResourceGroupLabel,
335
Label
= AzureProvisioningStrings.LocationLabel,
343
Label
= AzureProvisioningStrings.ResourceGroupLabel,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (3)
136
new InteractionInput { Name = LocationName, InputType = InputType.Choice,
Label
= AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] },
137
new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText,
Label
= AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true },
138
new InteractionInput { Name = ResourceGroupName, InputType = InputType.Text,
Label
= AzureProvisioningStrings.ResourceGroupLabel, Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
499
Label
= "Custom Port Number",
Aspire.Hosting.Tests (35)
AddParameterTests.cs (3)
384
Label
= "Custom Label",
443
Label
= "Custom Label",
488
Label
= "Custom Label",
Dashboard\DashboardServiceTests.cs (1)
363
new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text,
Label
= "Input" });
InteractionServiceTests.cs (31)
178
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, };
211
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Text, Required = true };
230
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
250
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
268
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Number };
288
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = InputType.Boolean };
318
var input = new InteractionInput { Name = "Value",
Label
= "Value", InputType = inputType, MaxLength = maxLength };
349
Label
= "Test Label",
369
Label
= "Test Label",
387
Label
= "Test Label",
422
Label
= "Test Label",
435
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
436
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText },
437
new InteractionInput { Name = "RememberMe",
Label
= "Remember Me", InputType = InputType.Boolean }
475
new InteractionInput { Name = "UserName",
Label
= "User Name", InputType = InputType.Text },
476
new InteractionInput { Name = "EmailAddress",
Label
= "Email Address", InputType = InputType.Text },
509
new InteractionInput { Name = "ExplicitName",
Label
= "Explicit", InputType = InputType.Text },
510
new InteractionInput { Name = "GeneratedLabel",
Label
= "Generated Label", InputType = InputType.Text },
511
new InteractionInput { Name = "AnotherExplicit",
Label
= "Another", InputType = InputType.Text }
532
new InteractionInput { Name = "Duplicate",
Label
= "First", InputType = InputType.Text },
533
new InteractionInput { Name = "Duplicate",
Label
= "Second", InputType = InputType.Text }
547
new InteractionInput { Name = "Username",
Label
= "First", InputType = InputType.Text },
548
new InteractionInput { Name = "USERNAME",
Label
= "Second", InputType = InputType.Text }
595
new InteractionInput { Name = "SpecialInput",
Label
= "!@#$%^&*()", InputType = InputType.Text },
596
new InteractionInput { Name = "EmptyLabel",
Label
= "", InputType = InputType.Text },
597
new InteractionInput { Name = "WhitespaceLabel",
Label
= " ", InputType = InputType.Text }
632
new InteractionInput { Name = "Valid",
Label
= "Valid", InputType = InputType.Text }
648
new InteractionInput { Name = "Username",
Label
= "Username", InputType = InputType.Text },
649
new InteractionInput { Name = "Password",
Label
= "Password", InputType = InputType.SecretText }
687
new InteractionInput { Name = "Email",
Label
= "Email", InputType = InputType.Text, Required = true },
688
new InteractionInput { Name = "Age",
Label
= "Age", InputType = InputType.Number, Required = true }
ExternalServices.AppHost (1)
AppHost.cs (1)
16
Label
= p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50
Label
= "Custom Input",
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
40
Label
= "Application Name",
48
Label
= "Application Version",
56
Label
= "SSL Certificate Type",
102
Label
= "Environment Name",
125
Label
= "Database Password",
140
Label
= "Region",
161
Label
= "Enable Verbose Logging",
175
Label
= "Instance Count",
190
Label
= "Strategy",
Stress.AppHost (9)
InteractionCommands.cs (9)
57
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." };
58
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 };
108
Label
= "Dinner",
136
Label
= "Requirements",
145
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number,
Label
= "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
148
new InteractionInput { Name = "Name", InputType = InputType.Text,
Label
= "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
149
new InteractionInput { Name = "Password", InputType = InputType.SecretText,
Label
= "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
153
new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean,
Label
= "Remember me", Placeholder = "What does this do?", Required = true },
238
Label
= $"Input {i + 1}",
51 references to Label
Aspire.Hosting (2)
IInteractionService.cs (2)
118
internal string EffectiveLabel => string.IsNullOrWhiteSpace(
Label
) ? Name :
Label
;
Aspire.Hosting.Azure.Tests (11)
AzureDeployerTests.cs (8)
77
Assert.Equal("Subscription ID", input.
Label
);
95
Assert.Equal("Location", input.
Label
);
101
Assert.Equal("Resource group", input.
Label
);
447
Assert.Equal("test-param", input.
Label
);
519
Assert.Equal("Custom Port Number", input.
Label
);
661
Assert.Equal("cache-password", input.
Label
);
707
Assert.Equal("dependent-param", input.
Label
);
752
Assert.Equal("app-port", input.
Label
);
ProvisioningContextProviderTests.cs (3)
283
Assert.Equal("Location", input.
Label
);
290
Assert.Equal("Subscription ID", input.
Label
);
297
Assert.Equal("Resource group", input.
Label
);
Aspire.Hosting.Tests (30)
AddParameterTests.cs (4)
407
Assert.Equal("test", input.
Label
);
426
Assert.Equal("secret", input.
Label
);
454
Assert.Equal("Custom Label", input.
Label
);
498
Assert.Equal("Custom Label", input.
Label
);
InteractionServiceTests.cs (19)
356
Assert.Equal("Test Label", input.
Label
);
445
Assert.Equal("Username", collection["Username"].
Label
);
446
Assert.Equal("Password", collection["Password"].
Label
);
447
Assert.Equal("Remember Me", collection["RememberMe"].
Label
);
456
Assert.Equal("Username", usernameInput.
Label
);
492
Assert.Equal("User Name", collection["UserName"].
Label
);
493
Assert.Equal("Email Address", collection["EmailAddress"].
Label
);
494
Assert.Null(collection["Age"].
Label
); // No label specified, should use EffectiveLabel
498
Assert.Equal("User Name", collection[0].
Label
);
499
Assert.Equal("Email Address", collection[1].
Label
);
500
Assert.Null(collection[2].
Label
);
521
Assert.Equal("Explicit", collection["ExplicitName"].
Label
);
522
Assert.Equal("Another", collection["AnotherExplicit"].
Label
);
523
Assert.Equal("Generated Label", collection["GeneratedLabel"].
Label
);
616
Assert.Equal("!@#$%^&*()", collection["SpecialInput"].
Label
);
619
Assert.Equal("", collection["EmptyLabel"].
Label
);
622
Assert.Equal(" ", collection["WhitespaceLabel"].
Label
);
705
Assert.Equal("Email", emailInput.
Label
);
706
Assert.Equal("Age", ageInput.
Label
);
Orchestrator\ParameterProcessorTests.cs (7)
208
Assert.Equal("param1", input.
Label
);
214
Assert.Equal("param2", input.
Label
);
220
Assert.Equal("secretParam", input.
Label
);
226
Assert.Equal(InteractionStrings.ParametersInputsRememberLabel, input.
Label
);
433
Assert.Equal("param1", param1Input.
Label
);
439
Assert.Equal("param2", param2Input.
Label
);
473
Assert.Equal("secretParam", secretInput.
Label
);
Publishers.AppHost (5)
DistributedApplicationBuilderExtensions.cs (5)
71
var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Name");
77
var versionInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Version");
91
var appName = multiInputResult.Canceled ? "default-app" : (multiInputResult.Data?.FirstOrDefault(i => i.
Label
== "Application Name")?.Value ?? "default-app");
92
var appVersion = multiInputResult.Canceled ? "1.0.0" : (multiInputResult.Data?.FirstOrDefault(i => i.
Label
== "Application Version")?.Value ?? "1.0.0");
93
var sslType = multiInputResult.Canceled ? "self-signed" : (multiInputResult.Data?.FirstOrDefault(i => i.
Label
== "SSL Certificate Type")?.Value ?? "self-signed");
Stress.AppHost (3)
InteractionCommands.cs (3)
97
logger.LogInformation("Input: {Label} = {Value}", input.
Label
, input.Value);
182
logger.LogInformation("Input: {Label} = {Value}", updatedInput.
Label
, updatedInput.Value);
258
logger.LogInformation("Input: {Label} = {Value}", input.
Label
, input.Value);