39 writes to Label
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
116
Label
= Name,
InteractionService.cs (1)
77
return await PromptInputAsync(title, message, new InteractionInput { InputType = InputType.Text,
Label
= inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
154
Label
= "Save to user secrets"
Aspire.Hosting.Azure (3)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (3)
104
new InteractionInput { InputType = InputType.Choice,
Label
= "Location", Placeholder = "Select location", Required = true, Options = [..locations] },
105
new InteractionInput { InputType = InputType.SecretText,
Label
= "Subscription ID", Placeholder = "Select subscription ID", Required = true },
106
new InteractionInput { InputType = InputType.Text,
Label
= "Resource group", Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Tests (14)
AddParameterTests.cs (3)
444
Label
= "Custom Label",
502
Label
= "Custom Label",
546
Label
= "Custom Label",
Dashboard\DashboardServiceTests.cs (1)
317
new Aspire.Hosting.InteractionInput { InputType = Aspire.Hosting.InputType.Text,
Label
= "Input" });
InteractionServiceTests.cs (10)
178
var input = new InteractionInput {
Label
= "Value", InputType = InputType.Text, };
211
var input = new InteractionInput {
Label
= "Value", InputType = InputType.Text, Required = true };
230
var input = new InteractionInput {
Label
= "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
250
var input = new InteractionInput {
Label
= "Value", InputType = InputType.Number };
270
var input = new InteractionInput {
Label
= "Value", InputType = InputType.Boolean };
300
var input = new InteractionInput {
Label
= "Value", InputType = inputType, MaxLength = maxLength };
330
Label
= "Test Label",
349
Label
= "Test Label",
366
Label
= "Test Label",
400
Label
= "Test Label",
ExternalServices.AppHost (1)
AppHost.cs (1)
15
Label
= p.Name,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
49
Label
= "Custom Input",
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
39
Label
= "Application Name",
46
Label
= "Application Version",
53
Label
= "SSL Certificate Type",
98
Label
= "Environment Name",
120
Label
= "Database Password",
134
Label
= "Region",
154
Label
= "Enable Verbose Logging",
167
Label
= "Instance Count",
181
Label
= "Strategy",
Stress.AppHost (8)
InteractionCommands.cs (8)
57
var inputNoMarkdown = new InteractionInput {
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 {
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 };
107
Label
= "Dinner",
130
var numberOfPeopleInput = new InteractionInput { InputType = InputType.Number,
Label
= "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
133
new InteractionInput { InputType = InputType.Text,
Label
= "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
134
new InteractionInput { InputType = InputType.SecretText,
Label
= "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
137
new InteractionInput { InputType = InputType.Boolean,
Label
= "Remember me", Placeholder = "What does this do?", Required = true },
221
Label
= $"Input {i + 1}",
29 references to Label
Aspire.Hosting (3)
Dashboard\DashboardService.cs (2)
125
if (input.
Label
!= null)
127
dto.Label = input.
Label
;
Publishing\PublishingActivityReporter.cs (1)
288
Label = input.
Label
,
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
84
Assert.Equal("Location", input.
Label
);
90
Assert.Equal("Subscription ID", input.
Label
);
96
Assert.Equal("Resource group", input.
Label
);
DefaultProvisioningContextProviderTests.cs (3)
280
Assert.Equal("Location", input.
Label
);
286
Assert.Equal("Subscription ID", input.
Label
);
292
Assert.Equal("Resource group", input.
Label
);
Aspire.Hosting.Tests (12)
AddParameterTests.cs (4)
467
Assert.Equal("test", input.
Label
);
486
Assert.Equal("secret", input.
Label
);
513
Assert.Equal("Custom Label", input.
Label
);
556
Assert.Equal("Custom Label", input.
Label
);
InteractionServiceTests.cs (1)
337
Assert.Equal("Test Label", input.
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("Save to user secrets", 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)
68
var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Name");
74
var versionInput = validationContext.Inputs.FirstOrDefault(i => i.
Label
== "Application Version");
88
var appName = multiInputResult.Canceled ? "default-app" : (multiInputResult.Data?.FirstOrDefault(i => i.
Label
== "Application Name")?.Value ?? "default-app");
89
var appVersion = multiInputResult.Canceled ? "1.0.0" : (multiInputResult.Data?.FirstOrDefault(i => i.
Label
== "Application Version")?.Value ?? "1.0.0");
90
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);
166
logger.LogInformation("Input: {Label} = {Value}", updatedInput.
Label
, updatedInput.Value);
241
logger.LogInformation("Input: {Label} = {Value}", input.
Label
, input.Value);