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