45 references to Choice
Aspire.Hosting (7)
Dashboard\DashboardService.cs (2)
230
Aspire.Hosting.InputType.
Choice
=> Aspire.DashboardService.Proto.V1.InputType.Choice,
243
Aspire.DashboardService.Proto.V1.InputType.Choice => InputType.
Choice
,
IInteractionService.cs (3)
298
/// Gets or sets the options for the input. Only used by <see cref="InputType.
Choice
"/> inputs.
320
/// Gets a value indicating whether a custom choice is allowed. Only used by <see cref="InputType.
Choice
"/> inputs.
325
/// Gets or sets a value indicating whether a custom choice is allowed. Only used by <see cref="InputType.
Choice
"/> inputs.
InteractionService.cs (2)
176
if (input.InputType == InputType.
Choice
)
405
case InputType.
Choice
:
Aspire.Hosting.Azure (6)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (3)
163
InputType = InputType.
Choice
,
262
InputType = InputType.
Choice
,
359
InputType = InputType.
Choice
,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (3)
134
InputType = InputType.
Choice
,
161
InputType = string.IsNullOrEmpty(_options.SubscriptionId) ? InputType.
Choice
: InputType.Text,
196
InputType = InputType.
Choice
,
Aspire.Hosting.Azure.Tests (7)
AzureDeployerTests.cs (3)
55
Assert.Equal(InputType.
Choice
, input.InputType);
72
Assert.Equal(InputType.
Choice
, input.InputType);
90
Assert.Equal(InputType.
Choice
, input.InputType);
ProvisioningContextProviderTests.cs (4)
286
Assert.Equal(InputType.
Choice
, input.InputType);
293
Assert.Equal(InputType.
Choice
, input.InputType);
300
Assert.Equal(InputType.
Choice
, input.InputType);
453
Assert.Equal(InputType.
Choice
, input.InputType);
Aspire.Hosting.Tests (8)
InteractionServiceTests.cs (8)
338
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.
Choice
, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
347
inputs: [new InputDto("Value", "not-in-options", InputType.
Choice
)]);
361
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.
Choice
, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
370
inputs: [new InputDto("Value", "not-in-options", InputType.
Choice
)]);
829
InputType = InputType.
Choice
,
883
InputType = InputType.
Choice
,
990
InputType = InputType.
Choice
,
1023
InputType = InputType.
Choice
,
Publishers.AppHost (4)
DistributedApplicationBuilderExtensions.cs (4)
66
InputType = InputType.
Choice
,
79
InputType = InputType.
Choice
,
172
InputType = InputType.
Choice
,
222
InputType = InputType.
Choice
,
Stress.AppHost (13)
InteractionCommands.cs (13)
74
InputType = InputType.
Choice
,
85
InputType = InputType.
Choice
,
144
InputType = InputType.
Choice
,
157
InputType = InputType.
Choice
,
196
InputType = InputType.
Choice
,
224
InputType = InputType.
Choice
,
282
InputType = InputType.
Choice
,
294
InputType = InputType.
Choice
,
342
InputType = InputType.
Choice
,
352
InputType = InputType.
Choice
,
421
InputType = InputType.
Choice
,
433
InputType = InputType.
Choice
,
451
InputType = InputType.
Choice
,