18 writes to Input
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (1)
669
Input
= argument,
IInteractionService.cs (1)
262
Input
= options.Input,
Aspire.Hosting.Azure.Tests (6)
AzureEnvironmentResourceExtensionsTests.cs (1)
5349
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 (6)
Orchestrator\ParameterProcessorTests.cs (6)
1094
Input
= valueInput,
1120
Input
= valueInput,
1154
Input
= valueInput,
1162
Input
= saveInput,
1191
Input
= deleteInput,
1223
Input
= deleteInput,
106 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 (16)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2499
context.
Input
.Options =
2575
context.
Input
.Disabled = context.AllInputs.GetString("category") is not "fruit";
2576
context.
Input
.Options =
InteractionServiceTests.cs (2)
919
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
973
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
Orchestrator\ParameterProcessorTests.cs (1)
1360
context.
Input
.Options = [KeyValuePair.Create($"{context.AllInputs["Region"].Value}-a", "a")];
ResourceCommandServiceTests.cs (10)
858
context.
Input
.Disabled = false;
1013
context.
Input
.Options = [KeyValuePair.Create("westus", "West US")];
1085
context.
Input
.Disabled = false;
1086
context.
Input
.Options = [KeyValuePair.Create("banana", "Banana")];
1102
context.
Input
.Disabled = false;
1103
context.
Input
.Options = [KeyValuePair.Create("express", "Express")];
1176
context.
Input
.Disabled = true;
1177
context.
Input
.Value = "default";
1178
context.
Input
.Options = [KeyValuePair.Create("default", "Default")];
1456
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)
389
context.
Input
.Options = [
412
context.
Input
.Disabled = false;
413
context.
Input
.Options = list;
417
context.
Input
.Disabled = true;
457
context.
Input
.Value = dependsOnInput.Value;
557
context.
Input
.Options = list;
698
context.
Input
.Options = [
724
context.
Input
.Disabled = false;
728
context.
Input
.Options = [
735
context.
Input
.Options = [
761
context.
Input
.Options = [
766
context.
Input
.Disabled = false;
768
if (string.IsNullOrEmpty(context.
Input
.Value))
770
context.
Input
.Value = "rg-aspire-stress";
802
context.
Input
.Options = [KeyValuePair.Create(existingLocation, existingLocation)];
803
context.
Input
.Value = existingLocation;
804
context.
Input
.Disabled = true;
810
context.
Input
.Options = [
822
context.
Input
.Disabled = false;