18 writes to Input
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (1)
669
Input
= argument,
IInteractionService.cs (1)
199
Input
= options.Input,
Aspire.Hosting.Azure.Tests (6)
AzureEnvironmentResourceExtensionsTests.cs (1)
5019
Input
= input,
ProvisioningContextProviderTests.cs (5)
391
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
447
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
543
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
552
Input
= inputsInteraction.Inputs[BaseProvisioningContextProvider.LocationName],
746
Input
= subscriptionInput,
Aspire.Hosting.Browsers.Tests (4)
BrowserLogsBuilderExtensionsTests.cs (4)
108
Input
= browserInput,
115
Input
= userDataModeInput,
122
Input
= profileInput,
161
Input
= profileInput,
Aspire.Hosting.Tests (6)
Orchestrator\ParameterProcessorTests.cs (6)
933
Input
= valueInput,
959
Input
= valueInput,
993
Input
= valueInput,
1001
Input
= saveInput,
1030
Input
= deleteInput,
1062
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)
214
if (context.
Input
.Value is not null)
224
context.
Input
.Value = existingValue;
252
if (context.
Input
.Value is null)
257
context.
Input
.Value = "true";
291
context.
Input
.Disabled = true;
295
context.
Input
.Disabled = parameterSection.Data.Count == 0;
Aspire.Hosting.Azure (32)
AzureProvisioningController.cs (19)
391
if (string.IsNullOrEmpty(context.
Input
.Value))
393
context.
Input
.Value = currentContext.TenantId;
399
context.
Input
.Options = tenantOptions;
406
context.
Input
.Disabled = false;
424
if (string.IsNullOrEmpty(context.
Input
.Value))
426
context.
Input
.Value = currentContext.SubscriptionId;
432
context.
Input
.Options = subscriptionOptions;
439
context.
Input
.Disabled = false;
455
if (string.IsNullOrEmpty(context.
Input
.Value))
457
context.
Input
.Value = currentContext.ResourceGroup;
461
context.
Input
.Options = resourceGroupOptions.Select(static rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
467
context.
Input
.Disabled = false;
494
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
495
context.
Input
.Value = resourceGroupLocation;
497
context.
Input
.Disabled = true;
505
if (string.IsNullOrEmpty(context.
Input
.Value))
507
context.
Input
.Value = !string.IsNullOrEmpty(deploymentStateResourceName)
512
context.
Input
.Options = await controller.GetLocationOptionsAsync(subscriptionId, context.CancellationToken).ConfigureAwait(false);
520
context.
Input
.Disabled = false;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (13)
352
context.
Input
.Options = fetchSucceeded
384
context.
Input
.Options = fetchSucceeded
387
context.
Input
.Disabled = false;
418
context.
Input
.Options = resourceGroupOptions.Select(rg => KeyValuePair.Create(rg.Name, rg.Name)).ToList();
422
context.
Input
.Options = [];
424
if (string.IsNullOrEmpty(context.
Input
.Value) && !defaultResourceGroupNameSet)
426
context.
Input
.Value = GetDefaultResourceGroupName();
431
context.
Input
.Disabled = false;
461
context.
Input
.Options = [KeyValuePair.Create(resourceGroupLocation, resourceGroupLocation)];
462
context.
Input
.Value = resourceGroupLocation;
463
context.
Input
.Disabled = true;
469
context.
Input
.Options = locationOptions;
470
context.
Input
.Disabled = false;
Aspire.Hosting.Browsers (10)
BrowserLogsConfigurationManager.cs (10)
180
if (context.
Input
.Value is null)
183
context.
Input
.Value = currentConfiguration.Browser;
189
if (context.
Input
.Value is null)
192
context.
Input
.Value = currentConfiguration.UserDataMode.ToString();
199
if (context.
Input
.Value is null)
201
context.
Input
.Value = currentConfiguration.Profile ?? BrowserDefaultProfileValue;
206
var profile = context.
Input
.Value;
244
context.
Input
.Value = BrowserDefaultProfileValue;
252
context.
Input
.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
253
context.
Input
.Disabled = disableProfileInput;
Aspire.Hosting.Browsers.Tests (10)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (10)
180
if (context.
Input
.Value is null)
183
context.
Input
.Value = currentConfiguration.Browser;
189
if (context.
Input
.Value is null)
192
context.
Input
.Value = currentConfiguration.UserDataMode.ToString();
199
if (context.
Input
.Value is null)
201
context.
Input
.Value = currentConfiguration.Profile ?? BrowserDefaultProfileValue;
206
var profile = context.
Input
.Value;
244
context.
Input
.Value = BrowserDefaultProfileValue;
252
context.
Input
.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
253
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)
857
context.
Input
.Disabled = false;
1012
context.
Input
.Options = [KeyValuePair.Create("westus", "West US")];
1084
context.
Input
.Disabled = false;
1085
context.
Input
.Options = [KeyValuePair.Create("banana", "Banana")];
1101
context.
Input
.Disabled = false;
1102
context.
Input
.Options = [KeyValuePair.Create("express", "Express")];
1175
context.
Input
.Disabled = true;
1176
context.
Input
.Value = "default";
1177
context.
Input
.Options = [KeyValuePair.Create("default", "Default")];
1353
context.
Input
.Disabled = !context.AllInputs.GetBoolean("generateTraces");
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
93
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";
1296
context.
Input
.Disabled = !bool.TryParse(context.AllInputs.GetString(inputName), out var enabled) || !enabled;
InteractionCommands.cs (19)
308
context.
Input
.Options = [
331
context.
Input
.Disabled = false;
332
context.
Input
.Options = list;
336
context.
Input
.Disabled = true;
376
context.
Input
.Value = dependsOnInput.Value;
476
context.
Input
.Options = list;
617
context.
Input
.Options = [
643
context.
Input
.Disabled = false;
647
context.
Input
.Options = [
654
context.
Input
.Options = [
680
context.
Input
.Options = [
685
context.
Input
.Disabled = false;
687
if (string.IsNullOrEmpty(context.
Input
.Value))
689
context.
Input
.Value = "rg-aspire-stress";
721
context.
Input
.Options = [KeyValuePair.Create(existingLocation, existingLocation)];
722
context.
Input
.Value = existingLocation;
723
context.
Input
.Disabled = true;
729
context.
Input
.Options = [
741
context.
Input
.Disabled = false;