95 writes to Name
Aspire.Hosting (3)
ApplicationModel\ParameterResource.cs (1)
129
Name
= Name,
InteractionService.cs (1)
108
return await PromptInputAsync(title, message, new InteractionInput {
Name
= InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
269
Name
= "RememberParameters",
Aspire.Hosting.Azure (10)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
161
Name
= TenantName,
187
Name
= TenantName,
260
Name
= SubscriptionIdName,
286
Name
= SubscriptionIdName,
354
Name
= ResourceGroupName,
452
Name
= LocationName,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
133
Name
= TenantName,
184
Name
= SubscriptionIdName,
198
Name
= ResourceGroupName,
235
Name
= LocationName,
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
560
Name
= p.Name,
Aspire.Hosting.Tests (47)
AddParameterTests.cs (3)
382
Name
= "CustomInput",
441
Name
= "TestParameter",
486
Name
= "TestParam",
Dashboard\DashboardServiceTests.cs (2)
320
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text });
367
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (42)
278
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, };
315
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, Required = true };
338
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
361
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
382
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Number };
405
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Boolean };
438
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
472
Name
= "TestLabel",
492
Name
= "TestLabel",
510
Name
= "TestLabel",
545
Name
= "TestLabel",
559
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
560
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText },
561
new InteractionInput {
Name
= "RememberMe", Label = "Remember Me", InputType = InputType.Boolean }
599
new InteractionInput {
Name
= "UserName", Label = "User Name", InputType = InputType.Text },
600
new InteractionInput {
Name
= "EmailAddress", Label = "Email Address", InputType = InputType.Text },
601
new InteractionInput {
Name
= "Age", InputType = InputType.Number }
633
new InteractionInput {
Name
= "ExplicitName", Label = "Explicit", InputType = InputType.Text },
634
new InteractionInput {
Name
= "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text },
635
new InteractionInput {
Name
= "AnotherExplicit", Label = "Another", InputType = InputType.Text }
656
new InteractionInput {
Name
= "Duplicate", Label = "First", InputType = InputType.Text },
657
new InteractionInput {
Name
= "Duplicate", Label = "Second", InputType = InputType.Text }
671
new InteractionInput {
Name
= "Username", Label = "First", InputType = InputType.Text },
672
new InteractionInput {
Name
= "USERNAME", Label = "Second", InputType = InputType.Text }
686
new InteractionInput {
Name
= "Input1", InputType = InputType.Text },
687
new InteractionInput {
Name
= "Input2", InputType = InputType.Text },
688
new InteractionInput {
Name
= "Input3", InputType = InputType.Text }
719
new InteractionInput {
Name
= "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text },
720
new InteractionInput {
Name
= "EmptyLabel", Label = "", InputType = InputType.Text },
721
new InteractionInput {
Name
= "WhitespaceLabel", Label = " ", InputType = InputType.Text }
756
new InteractionInput {
Name
= "Valid", Label = "Valid", InputType = InputType.Text }
772
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
773
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText }
828
Name
= "Dynamic",
879
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
882
Name
= "Dynamic",
934
new InteractionInput {
Name
= "Email", Label = "Email", InputType = InputType.Text, Required = true },
935
new InteractionInput {
Name
= "Age", Label = "Age", InputType = InputType.Number, Required = true }
988
Name
= "Choice",
1002
new InteractionInput {
Name
= "Age", Label = "Age", InputType = InputType.Number, Required = true }
1021
Name
= "Choice",
1035
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 (10)
DistributedApplicationBuilderExtensions.cs (10)
48
Name
= "ApplicationName",
56
Name
= "ApplicationVersion",
64
Name
= "SSLCertificateType",
77
Name
= "SSLCertificateTypeMoreDetails",
132
Name
= "EnvironmentName",
155
Name
= "DatabasePassword",
170
Name
= "Region",
191
Name
= "EnableVerboseLogging",
205
Name
= "InstanceCount",
220
Name
= "Strategy",
Stress.AppHost (22)
InteractionCommands.cs (22)
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 };
70
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.", EnableDescriptionMarkdown = true };
73
Name
= "Choice",
84
Name
= "Combobox",
143
Name
= "Dinner",
156
Name
= "Requirements",
195
Name
= "Dinner",
223
Name
= "Requirements",
234
var numberOfPeopleInput = new InteractionInput {
Name
= "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
237
new InteractionInput {
Name
= "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
238
new InteractionInput {
Name
= "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
242
new InteractionInput {
Name
= "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
281
Name
= "PredefinedOptions",
293
Name
= "CustomChoice",
341
Name
= "Dynamic",
351
Name
= "DynamicCustomChoice",
362
Name
= "DynamicTextInput",
420
Name
= "PredefinedOptions",
432
Name
= "CustomChoice",
450
Name
= "Dynamic",
563
Name
= $"Input{i + 1}",
26 references to Name
Aspire.Hosting (13)
Dashboard\DashboardService.cs (2)
130
var updateStateOnChange = updateStateOnChangeInputs.Any(i => string.Equals(i, input.
Name
, StringComparisons.InteractionInputName));
134
Name = input.
Name
,
Dashboard\DashboardServiceData.cs (1)
223
(dynamic.DependsOnInputs?.Any(d => string.Equals(modelInput.
Name
, d, StringComparisons.InteractionInputName)) ?? false));
IInteractionService.cs (5)
191
options.Logger.LogError(ex, "Error loading options for input '{InputName}'.", options.Input.
Name
);
262
internal string EffectiveLabel => string.IsNullOrWhiteSpace(Label) ?
Name
: Label;
369
if (!usedNames.Add(input.
Name
))
371
throw new InvalidOperationException($"Duplicate input name '{input.
Name
}' found. Input names must be unique.");
373
inputsByName[input.
Name
] = input;
InteractionService.cs (2)
145
throw new InvalidOperationException($"The input '{input.
Name
}' has {nameof(InteractionInput.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but no such input exists.");
149
throw new InvalidOperationException($"The input '{input.
Name
}' has {nameof(InteractionInput.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but that input is not defined before it. Inputs must be defined in order so that dependencies are always to earlier inputs.");
Pipelines\PipelineActivityReporter.cs (3)
308
Name = input.
Name
,
316
UpdateStateOnChange = updateStateOnChangeInputs.Any(i => string.Equals(i, input.
Name
, StringComparisons.InteractionInputName)),
402
dtos.Add(new InputDto(matchingInput.
Name
, responseAnswer.Value ?? "", matchingInput.InputType));
Aspire.Hosting.Azure.Tests (8)
AzureDeployerTests.cs (1)
581
Assert.Equal("custom-param", input.
Name
);
ProvisioningContextProviderTests.cs (7)
284
Assert.Equal(BaseProvisioningContextProvider.TenantName, input.
Name
);
291
Assert.Equal(BaseProvisioningContextProvider.SubscriptionIdName, input.
Name
);
298
Assert.Equal(BaseProvisioningContextProvider.ResourceGroupName, input.
Name
);
305
Assert.Equal(BaseProvisioningContextProvider.LocationName, input.
Name
);
454
Assert.Equal(BaseProvisioningContextProvider.SubscriptionIdName, input.
Name
);
462
Assert.Equal(BaseProvisioningContextProvider.ResourceGroupName, input.
Name
);
469
Assert.Equal(BaseProvisioningContextProvider.LocationName, input.
Name
);
Stress.AppHost (5)
InteractionCommands.cs (5)
134
logger.LogInformation("Input: {Name} = {Value}", input.
Name
, input.Value);
271
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
410
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
509
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
585
logger.LogInformation("Input: {Name} = {Value}", input.
Name
, input.Value);