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)
5028
Input
= input,
ProvisioningContextProviderTests.cs (5)
388
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
444
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
540
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
549
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
743
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)
931
Input
= valueInput,
957
Input
= valueInput,
991
Input
= valueInput,
999
Input
= saveInput,
1028
Input
= deleteInput,
1060
Input
= deleteInput,
103 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)
211
if (context.
Input
.Value is not null)
221
context.
Input
.Value = existingValue;
249
if (context.
Input
.Value is null)
254
context.
Input
.Value = "true";
288
context.
Input
.Disabled = true;
292
context.
Input
.Disabled = parameterSection.Data.Count == 0;
Aspire.Hosting.Azure (32)
AzureProvisioningController.cs (19)
388
if (string.IsNullOrEmpty(context.
Input
.Value))
390
context.
Input
.Value = currentContext.TenantId;
396
context.
Input
.Options = tenantOptions;
403
context.
Input
.Disabled = false;
421
if (string.IsNullOrEmpty(context.
Input
.Value))
423
context.
Input
.Value = currentContext.SubscriptionId;
429
context.
Input
.Options = subscriptionOptions;
436
context.
Input
.Disabled = false;
452
if (string.IsNullOrEmpty(context.
Input
.Value))
454
context.
Input
.Value = currentContext.ResourceGroup;
458
context.
Input
.Options = resourceGroupOptions.Select(static rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
464
context.
Input
.Disabled = false;
491
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
492
context.
Input
.Value = resourceGroupLocation;
494
context.
Input
.Disabled = true;
502
if (string.IsNullOrEmpty(context.
Input
.Value))
504
context.
Input
.Value = !string.IsNullOrEmpty(deploymentStateResourceName)
509
context.
Input
.Options = await controller.GetLocationOptionsAsync(subscriptionId, context.CancellationToken).ConfigureAwait(false);
517
context.
Input
.Disabled = false;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (13)
350
context.
Input
.Options = fetchSucceeded
382
context.
Input
.Options = fetchSucceeded
385
context.
Input
.Disabled = false;
416
context.
Input
.Options = resourceGroupOptions.Select(rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
420
context.
Input
.Options = [];
422
if (string.IsNullOrEmpty(context.
Input
.Value) && !defaultResourceGroupNameSet)
424
context.
Input
.Value = GetDefaultResourceGroupName();
429
context.
Input
.Disabled = false;
459
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
460
context.
Input
.Value = resourceGroupLocation;
461
context.
Input
.Disabled = true;
467
context.
Input
.Options = locationOptions;
468
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 (15)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2457
context.
Input
.Options =
2533
context.
Input
.Disabled = context.AllInputs.GetString("category") is not "fruit";
2534
context.
Input
.Options =
InteractionServiceTests.cs (2)
919
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
973
c.
Input
.Options = [KeyValuePair.Create("loaded", "Loaded option")];
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)
420
context.
Input
.Disabled = string.IsNullOrEmpty(category);
421
context.
Input
.Options = category switch
471
context.
Input
.Disabled = string.IsNullOrEmpty(item);
475
context.
Input
.Options = isPerishable
488
if (string.IsNullOrEmpty(context.
Input
.Value))
490
context.
Input
.Value = isPerishable ? "express" : "standard";
1373
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;