20 writes to Required
Aspire.Hosting (1)
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);
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
108
new InteractionInput { Name = LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder,
Required
= true, Options = [..locations] },
109
new InteractionInput { Name = SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder,
Required
= true },
Aspire.Hosting.Tests (3)
InteractionServiceTests.cs (3)
211
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text,
Required
= true };
669
new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text,
Required
= true },
670
new InteractionInput { Name = "Age", Label = "Age", InputType = InputType.Number,
Required
= true }
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
42
Required
= true,
50
Required
= false,
58
Required
= true,
104
Required
= true,
127
Required
= true,
142
Required
= true,
163
Required
= false
177
Required
= true,
192
Required
= true,
Stress.AppHost (5)
InteractionCommands.cs (5)
110
Required
= true,
132
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2",
Required
= true };
135
new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name",
Required
= true, MaxLength = 50 },
136
new InteractionInput { Name = "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password",
Required
= true, MaxLength = 20 },
139
new 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)
123
Required = input.
Required
InteractionService.cs (1)
259
if (input.
Required
)
Publishing\PublishingActivityReporter.cs (1)
290
Required = input.
Required
,
Aspire.Hosting.Azure.Tests (6)
AzureDeployerTests.cs (3)
88
Assert.True(input.
Required
);
94
Assert.True(input.
Required
);
100
Assert.False(input.
Required
);
DefaultProvisioningContextProviderTests.cs (3)
299
Assert.True(input.
Required
);
306
Assert.True(input.
Required
);
313
Assert.False(input.
Required
);
Aspire.Hosting.Tests (4)
Orchestrator\ParameterProcessorTests.cs (4)
209
Assert.False(input.
Required
);
215
Assert.False(input.
Required
);
221
Assert.False(input.
Required
);
227
Assert.False(input.
Required
);