73 writes to Name
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
118
Name
= Name,
InteractionService.cs (1)
77
return await PromptInputAsync(title, message, new InteractionInput {
Name
= inputLabel, InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
286
Name
= "RememberParameters",
Aspire.Hosting.Azure (9)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
165
Name
= SubscriptionIdName,
191
Name
= SubscriptionIdName,
282
Name
= LocationName,
290
Name
= ResourceGroupName,
333
Name
= LocationName,
341
Name
= ResourceGroupName,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (3)
136
new InteractionInput {
Name
= LocationName, InputType = InputType.Choice, Label = AzureProvisioningStrings.LocationLabel, Placeholder = AzureProvisioningStrings.LocationPlaceholder, Required = true, Options = [..locations] },
137
new InteractionInput {
Name
= SubscriptionIdName, InputType = InputType.SecretText, Label = AzureProvisioningStrings.SubscriptionIdLabel, Placeholder = AzureProvisioningStrings.SubscriptionIdPlaceholder, Required = true },
138
new InteractionInput {
Name
= ResourceGroupName, InputType = InputType.Text, Label = AzureProvisioningStrings.ResourceGroupLabel, Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
497
Name
= p.Name,
Aspire.Hosting.Tests (40)
AddParameterTests.cs (3)
382
Name
= "CustomInput",
441
Name
= "TestParameter",
486
Name
= "TestParam",
Dashboard\DashboardServiceTests.cs (2)
317
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text });
363
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (35)
178
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, };
211
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, Required = true };
230
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
250
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
268
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Number };
288
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Boolean };
318
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
348
Name
= "TestLabel",
368
Name
= "TestLabel",
386
Name
= "TestLabel",
421
Name
= "TestLabel",
435
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
436
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText },
437
new InteractionInput {
Name
= "RememberMe", Label = "Remember Me", InputType = InputType.Boolean }
475
new InteractionInput {
Name
= "UserName", Label = "User Name", InputType = InputType.Text },
476
new InteractionInput {
Name
= "EmailAddress", Label = "Email Address", InputType = InputType.Text },
477
new InteractionInput {
Name
= "Age", InputType = InputType.Number }
509
new InteractionInput {
Name
= "ExplicitName", Label = "Explicit", InputType = InputType.Text },
510
new InteractionInput {
Name
= "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text },
511
new InteractionInput {
Name
= "AnotherExplicit", Label = "Another", InputType = InputType.Text }
532
new InteractionInput {
Name
= "Duplicate", Label = "First", InputType = InputType.Text },
533
new InteractionInput {
Name
= "Duplicate", Label = "Second", InputType = InputType.Text }
547
new InteractionInput {
Name
= "Username", Label = "First", InputType = InputType.Text },
548
new InteractionInput {
Name
= "USERNAME", Label = "Second", InputType = InputType.Text }
562
new InteractionInput {
Name
= "Input1", InputType = InputType.Text },
563
new InteractionInput {
Name
= "Input2", InputType = InputType.Text },
564
new InteractionInput {
Name
= "Input3", InputType = InputType.Text }
595
new InteractionInput {
Name
= "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text },
596
new InteractionInput {
Name
= "EmptyLabel", Label = "", InputType = InputType.Text },
597
new InteractionInput {
Name
= "WhitespaceLabel", Label = " ", InputType = InputType.Text }
632
new InteractionInput {
Name
= "Valid", Label = "Valid", InputType = InputType.Text }
648
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
649
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText }
687
new InteractionInput {
Name
= "Email", Label = "Email", InputType = InputType.Text, Required = true },
688
new InteractionInput {
Name
= "Age", Label = "Age", InputType = InputType.Number, Required = true }
ExternalServices.AppHost (1)
AppHost.cs (1)
13
Name
= "ParameterInput",
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
48
Name
= "ParameterInput",
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
39
Name
= "ApplicationName",
47
Name
= "ApplicationVersion",
55
Name
= "SSLCertificateType",
101
Name
= "EnvironmentName",
124
Name
= "DatabasePassword",
139
Name
= "Region",
160
Name
= "EnableVerboseLogging",
174
Name
= "InstanceCount",
189
Name
= "Strategy",
Stress.AppHost (9)
InteractionCommands.cs (9)
57
var inputNoMarkdown = new InteractionInput {
Name
= "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." };
58
var inputHasMarkdown = new InteractionInput {
Name
= "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true };
106
Name
= "Dinner",
134
Name
= "Requirements",
145
var numberOfPeopleInput = new InteractionInput {
Name
= "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
148
new InteractionInput {
Name
= "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
149
new InteractionInput {
Name
= "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
153
new InteractionInput {
Name
= "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
236
Name
= $"Input{i + 1}",
8 references to Name
Aspire.Hosting (4)
IInteractionService.cs (4)
118
internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ?
Name
: Label;
203
if (!usedNames.Add(input.
Name
))
205
throw new InvalidOperationException($"Duplicate input name '{input.
Name
}' found. Input names must be unique.");
207
inputsByName[input.
Name
] = input;
Aspire.Hosting.Azure.Tests (4)
AzureDeployerTests.cs (1)
518
Assert.Equal("custom-param", input.
Name
);
ProvisioningContextProviderTests.cs (3)
282
Assert.Equal(BaseProvisioningContextProvider.LocationName, input.
Name
);
289
Assert.Equal(BaseProvisioningContextProvider.SubscriptionIdName, input.
Name
);
296
Assert.Equal(BaseProvisioningContextProvider.ResourceGroupName, input.
Name
);