20 writes to Required
Aspire.Hosting (1)
InteractionService.cs (1)
77return await PromptInputAsync(title, message, new InteractionInput { Name = inputLabel, InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
108new InteractionInput { Name = LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] }, 109new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true },
Aspire.Hosting.Tests (3)
InteractionServiceTests.cs (3)
211var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 669new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 670new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
42Required = true, 50Required = false, 58Required = true, 104Required = true, 127Required = true, 142Required = true, 163Required = false 177Required = true, 192Required = true,
Stress.AppHost (5)
InteractionCommands.cs (5)
110Required = true, 132var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 135new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 136new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 }, 139new InteractionInput { Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
13 references to Required
Aspire.Hosting (3)
Dashboard\DashboardService.cs (1)
123Required = input.Required
InteractionService.cs (1)
259if (input.Required)
Publishing\PublishingActivityReporter.cs (1)
290Required = input.Required,
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
88Assert.True(input.Required); 94Assert.True(input.Required); 100Assert.False(input.Required);
DefaultProvisioningContextProviderTests.cs (3)
299Assert.True(input.Required); 306Assert.True(input.Required); 313Assert.False(input.Required);
Aspire.Hosting.Tests (4)
Orchestrator\ParameterProcessorTests.cs (4)
209Assert.False(input.Required); 215Assert.False(input.Required); 221Assert.False(input.Required); 227Assert.False(input.Required);