19 writes to Input
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (1)
669
Input
= argument,
IInteractionService.cs (1)
267
Input
= options.Input,
Aspire.Hosting.Azure.Tests (6)
AzureEnvironmentResourceExtensionsTests.cs (1)
5374
Input
= input,
ProvisioningContextProviderTests.cs (5)
589
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
646
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
743
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
752
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
950
Input
= subscriptionInput,
Aspire.Hosting.Browsers.Tests (4)
BrowserLogsBuilderExtensionsTests.cs (4)
107
Input
= browserInput,
114
Input
= userDataModeInput,
121
Input
= profileInput,
160
Input
= profileInput,
Aspire.Hosting.Tests (7)
Orchestrator\ParameterProcessorTests.cs (7)
1094
Input
= valueInput,
1120
Input
= valueInput,
1154
Input
= valueInput,
1162
Input
= saveInput,
1191
Input
= deleteInput,
1223
Input
= deleteInput,
1554
Input
= zoneInput,
109 references to Input
Aspire.Hosting (9)
Ats\InteractionExports.cs (3)
464
return _inner.
Input
.Name;
478
_inner.
Input
.Options = InteractionExports.ToOptionList(choices);
489
_inner.
Input
.Value = value;
Orchestrator\ParameterProcessor.cs (6)
329
if (context.
Input
.Value is not null)
336
context.
Input
.Value = existingValue;
359
if (context.
Input
.Value is null)
364
context.
Input
.Value = "true";
398
context.
Input
.Disabled = true;
402
context.
Input
.Disabled = parameterSection.Data.Count == 0;
Aspire.Hosting.Azure (34)
AzureProvisioningController.cs (21)
367
context.
Input
.Value = options.TenantResourceSuffix ?? string.Empty;
368
context.
Input
.Disabled = false;
413
if (string.IsNullOrEmpty(context.
Input
.Value))
415
context.
Input
.Value = currentContext.TenantId;
421
context.
Input
.Options = tenantOptions;
428
context.
Input
.Disabled = false;
446
if (string.IsNullOrEmpty(context.
Input
.Value))
448
context.
Input
.Value = currentContext.SubscriptionId;
454
context.
Input
.Options = subscriptionOptions;
461
context.
Input
.Disabled = false;
477
if (string.IsNullOrEmpty(context.
Input
.Value))
479
context.
Input
.Value = currentContext.ResourceGroup;
483
context.
Input
.Options = resourceGroupOptions.Select(static rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
489
context.
Input
.Disabled = false;
516
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
517
context.
Input
.Value = resourceGroupLocation;
519
context.
Input
.Disabled = true;
527
if (string.IsNullOrEmpty(context.
Input
.Value))
529
context.
Input
.Value = !string.IsNullOrEmpty(deploymentStateResourceName)
534
context.
Input
.Options = await controller.GetLocationOptionsAsync(subscriptionId, context.CancellationToken).ConfigureAwait(false);
542
context.
Input
.Disabled = false;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (13)
363
context.
Input
.Options = fetchSucceeded
395
context.
Input
.Options = fetchSucceeded
398
context.
Input
.Disabled = false;
429
context.
Input
.Options = resourceGroupOptions.Select(rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
433
context.
Input
.Options = [];
435
if (string.IsNullOrEmpty(context.
Input
.Value) && !defaultResourceGroupNameSet)
437
context.
Input
.Value = GetDefaultResourceGroupName();
442
context.
Input
.Disabled = false;
472
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
473
context.
Input
.Value = resourceGroupLocation;
474
context.
Input
.Disabled = true;
480
context.
Input
.Options = locationOptions;
481
context.
Input
.Disabled = false;
Aspire.Hosting.Browsers (10)
BrowserLogsConfigurationManager.cs (10)
179
if (context.
Input
.Value is null)
182
context.
Input
.Value = currentConfiguration.Browser;
188
if (context.
Input
.Value is null)
191
context.
Input
.Value = currentConfiguration.UserDataMode.ToString();
198
if (context.
Input
.Value is null)
200
context.
Input
.Value = currentConfiguration.Profile ?? BrowserDefaultProfileValue;
205
var profile = context.
Input
.Value;
243
context.
Input
.Value = BrowserDefaultProfileValue;
251
context.
Input
.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
252
context.
Input
.Disabled = disableProfileInput;
Aspire.Hosting.Browsers.Tests (10)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (10)
179
if (context.
Input
.Value is null)
182
context.
Input
.Value = currentConfiguration.Browser;
188
if (context.
Input
.Value is null)
191
context.
Input
.Value = currentConfiguration.UserDataMode.ToString();
198
if (context.
Input
.Value is null)
200
context.
Input
.Value = currentConfiguration.Profile ?? BrowserDefaultProfileValue;
205
var profile = context.
Input
.Value;
243
context.
Input
.Value = BrowserDefaultProfileValue;
251
context.
Input
.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
252
context.
Input
.Disabled = disableProfileInput;
Aspire.Hosting.Tests (19)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2504
context.
Input
.Options =
2580
context.
Input
.Disabled = context.AllInputs.GetString("category") is not "fruit";
2581
context.
Input
.Options =
InteractionServiceTests.cs (2)
1023
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
1077
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
Orchestrator\ParameterProcessorTests.cs (4)
1360
context.
Input
.Options = [KeyValuePair.Create($"{context.AllInputs["Region"].Value}-a", "a")];
1407
context.
Input
.Options = [KeyValuePair.Create($"{context.AllInputs["Region"].Value}-a", "a")];
1442
context.
Input
.Options = [KeyValuePair.Create("west", "West")];
1536
context.
Input
.Options = [KeyValuePair.Create($"{context.AllInputs["Region"].Value}-a", "a")];
ResourceCommandServiceTests.cs (10)
859
context.
Input
.Disabled = false;
1014
context.
Input
.Options = [KeyValuePair.Create("westus", "West US")];
1086
context.
Input
.Disabled = false;
1087
context.
Input
.Options = [KeyValuePair.Create("banana", "Banana")];
1103
context.
Input
.Disabled = false;
1104
context.
Input
.Options = [KeyValuePair.Create("express", "Express")];
1177
context.
Input
.Disabled = true;
1178
context.
Input
.Value = "default";
1179
context.
Input
.Options = [KeyValuePair.Create("default", "Default")];
1458
context.
Input
.Disabled = !context.AllInputs.GetBoolean("generateTraces");
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
91
c.
Input
.Options = options;
Stress.AppHost (26)
CommandResources.cs (7)
421
context.
Input
.Disabled = string.IsNullOrEmpty(category);
422
context.
Input
.Options = category switch
472
context.
Input
.Disabled = string.IsNullOrEmpty(item);
476
context.
Input
.Options = isPerishable
489
if (string.IsNullOrEmpty(context.
Input
.Value))
491
context.
Input
.Value = isPerishable ? "express" : "standard";
1374
context.
Input
.Disabled = !bool.TryParse(context.AllInputs.GetString(inputName), out var enabled) || !enabled;
InteractionCommands.cs (19)
405
context.
Input
.Options = [
428
context.
Input
.Disabled = false;
429
context.
Input
.Options = list;
433
context.
Input
.Disabled = true;
473
context.
Input
.Value = dependsOnInput.Value;
573
context.
Input
.Options = list;
714
context.
Input
.Options = [
740
context.
Input
.Disabled = false;
744
context.
Input
.Options = [
751
context.
Input
.Options = [
777
context.
Input
.Options = [
782
context.
Input
.Disabled = false;
784
if (string.IsNullOrEmpty(context.
Input
.Value))
786
context.
Input
.Value = "rg-aspire-stress";
818
context.
Input
.Options = [KeyValuePair.Create(existingLocation, existingLocation)];
819
context.
Input
.Value = existingLocation;
820
context.
Input
.Disabled = true;
826
context.
Input
.Options = [
838
context.
Input
.Disabled = false;