78 writes to Options
Aspire.Hosting (6)
ApplicationModel\ResourceCommandService.cs (1)
808
Options
= input.Options,
Ats\InteractionExports.cs (4)
230
builder.Input.
Options
= ToOptionList(choices);
264
Options
= input.Options,
339
Input.
Options
= InteractionExports.ToOptionList(choices);
478
_inner.Input.
Options
= InteractionExports.ToOptionList(choices);
ParameterResourceBuilderExtensions.cs (1)
269
Options
= options.Options is { Count: > 0 } optionValues ? optionValues.Select(static option => KeyValuePair.Create(option.Key, option.Value)).ToArray() : null,
Aspire.Hosting.Azure (16)
AzureProvisioningController.cs (6)
396
context.Input.
Options
= tenantOptions;
429
context.Input.
Options
= subscriptionOptions;
458
context.Input.
Options
= resourceGroupOptions.Select(static rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
491
context.Input.
Options
= [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
509
context.Input.
Options
= await controller.GetLocationOptionsAsync(subscriptionId, context.CancellationToken).ConfigureAwait(false);
682
Options
= locationOptions
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
161
Options
= [..tenantOptions]
260
Options
= [..subscriptionOptions]
356
Options
= resourceGroupFetchSucceeded && resourceGroupOptions is not null
452
Options
= [..locationOptions]
Provisioning\Internal\RunModeProvisioningContextProvider.cs (6)
350
context.Input.
Options
= fetchSucceeded
382
context.Input.
Options
= fetchSucceeded
416
context.Input.
Options
= resourceGroupOptions.Select(rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
420
context.Input.
Options
= [];
459
context.Input.
Options
= [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
467
context.Input.
Options
= locationOptions;
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
5012
Options
= input.Options,
Aspire.Hosting.Browsers (4)
BrowserLogsConfigurationManager.cs (4)
51
Options
=
66
Options
= browserOptions,
85
Options
=
251
context.Input.
Options
= [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
Aspire.Hosting.Browsers.Tests (4)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (4)
51
Options
=
66
Options
= browserOptions,
85
Options
=
251
context.Input.
Options
= [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
Aspire.Hosting.Tests (16)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (5)
221
Options
=
2443
Options
=
2457
context.Input.
Options
=
2517
Options
=
2534
context.Input.
Options
=
InteractionServiceTests.cs (4)
422
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice,
Options
= [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
445
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true,
Options
= [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
919
c.Input.
Options
= [KeyValuePair.Create("loaded", "Loaded option")];
973
c.Input.
Options
= [KeyValuePair.Create("loaded", "Loaded option")];
ResourceCommandServiceTests.cs (7)
999
Options
= [KeyValuePair.Create("sub-a", "Subscription A")]
1013
context.Input.
Options
= [KeyValuePair.Create("westus", "West US")];
1072
Options
= [KeyValuePair.Create("fruit", "Fruit")]
1086
context.Input.
Options
= [KeyValuePair.Create("banana", "Banana")];
1103
context.Input.
Options
= [KeyValuePair.Create("express", "Express")];
1164
Options
= [KeyValuePair.Create("isolated", "Isolated")]
1178
context.Input.
Options
= [KeyValuePair.Create("default", "Default")];
Publishers.AppHost (4)
DistributedApplicationBuilderExtensions.cs (4)
67
Options
=
91
c.Input.
Options
= options;
190
Options
=
240
Options
=
Stress.AppHost (27)
CommandResources.cs (8)
235
Options
=
314
Options
=
396
Options
=
421
context.Input.
Options
= category switch
475
context.Input.
Options
= isPerishable
555
Options
=
712
Options
=
758
Options
=
InteractionCommands.cs (19)
79
Options
= [
91
Options
= [
149
Options
=
162
Options
=
202
Options
=
230
Options
=
308
Options
= [KeyValuePair.Create("pizza", "Pizza"), KeyValuePair.Create("salad", "Salad")],
319
Options
= [KeyValuePair.Create("vegetarian", "Vegetarian"), KeyValuePair.Create("vegan", "Vegan")],
368
Options
= [
389
context.Input.
Options
= [
413
context.Input.
Options
= list;
507
Options
= [
557
context.Input.
Options
= list;
698
context.Input.
Options
= [
728
context.Input.
Options
= [
735
context.Input.
Options
= [
761
context.Input.
Options
= [
802
context.Input.
Options
= [KeyValuePair.Create(existingLocation, existingLocation)];
810
context.Input.
Options
= [
38 references to Options
Aspire.Hosting (10)
ApplicationModel\ResourceCommandService.cs (2)
629
if (!argument.AllowCustomChoice && argument.
Options
is { } options && !options.Any(o => o.Key == value))
808
Options = input.
Options
,
Ats\InteractionExports.cs (1)
264
Options = input.
Options
,
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1400
Options = CreateOptionsDictionary(input.
Options
),
Dashboard\DashboardService.cs (2)
247
if (input.
Options
!= null)
249
dto.Options.Add(input.
Options
.ToDictionary());
InteractionService.cs (3)
228
if (input.
Options
== null || !input.
Options
.Any(o => o.Key == input.Value))
647
var options = input.
Options
;
Pipelines\PipelineActivityReporter.cs (1)
343
Options = input.
Options
,
Aspire.Hosting.Azure.Tests (17)
AzureEnvironmentResourceExtensionsTests.cs (12)
191
Assert.Contains(tenantInput.
Options
!, option => option.Key == "87654321-4321-4321-4321-210987654321");
201
Assert.Contains(subscriptionInput.
Options
!, option => option.Key == "12345678-1234-1234-1234-123456789012");
210
Assert.Contains(resourceGroupInput.
Options
!, option => option.Key == "rg-test-2");
220
Assert.Equal([KeyValuePair.Create("westus", "westus")], locationInput.
Options
);
245
Assert.Contains(tenantInput.
Options
!, option => option.Key == AzureContextOptionsArmClient.SecondTenantId);
256
Assert.DoesNotContain(subscriptionInput.
Options
!, option => option.Key == AzureContextOptionsArmClient.FirstSubscriptionId);
257
Assert.Contains(subscriptionInput.
Options
!, option => option.Key == AzureContextOptionsArmClient.SecondSubscriptionId);
265
Assert.Contains(resourceGroupInput.
Options
!, option => option.Key == "rg-second");
295
Assert.Contains(locationInput.
Options
!, option => option.Key == "eastus");
296
Assert.Contains(locationInput.
Options
!, option => option.Key == "westus2");
2967
var options = Assert.IsAssignableFrom<IEnumerable<KeyValuePair<string, string>>>(locationInput.
Options
);
5012
Options = input.
Options
,
ProvisioningContextProviderTests.cs (5)
392
inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].Value = inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].
Options
!.First(kvp => kvp.Key == "westus").Value;
448
inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].Value = inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].
Options
!.First(kvp => kvp.Key == "westus").Value;
553
inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].Value = inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName].
Options
!.First(kvp => kvp.Key == "westus").Value;
749
Assert.NotNull(subscriptionInput.
Options
);
750
Assert.NotEmpty(subscriptionInput.
Options
);
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (3)
131
Assert.All(browserInput.
Options
!, option => Assert.Contains(option.Key, knownBrowserOptionKeys));
132
Assert.Contains(profileInput.
Options
!, option => option.Key == "Profile 1" && option.Value == "Profile 1");
168
Assert.Contains(profileInput.
Options
!, option => option.Key == "Profile 1" && option.Value == "Profile 1");
Aspire.Hosting.Tests (8)
AddParameterTests.cs (4)
623
[nameof(InteractionInput.
Options
)] = new Dictionary<string, string>
644
Assert.Collection(input.
Options
!,
685
[nameof(InteractionInput.
Options
)] = new Dictionary<string, string>()
694
Assert.Null(input.
Options
);
InteractionServiceTests.cs (4)
933
Assert.Null(inputsInteractionInfo.Inputs["Dynamic"].
Options
);
942
Assert.Equal("loaded", inputsInteractionInfo.Inputs["Dynamic"].
Options
![0].Key);
988
Assert.Null(inputsInteractionInfo.Inputs["Dynamic"].
Options
);
1008
Assert.Equal("loaded", inputsInteractionInfo.Inputs["Dynamic"].
Options
![0].Key);