96 writes to Name
Aspire.Hosting (4)
ApplicationModel\ParameterResource.cs (1)
141
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 (2)
310
Name
= SaveToUserSecretsName,
349
Name
= DeleteFromUserSecretsName,
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)
634
Name
= p.Name,
Aspire.Hosting.Tests (47)
AddParameterTests.cs (3)
383
Name
= "CustomInput",
442
Name
= "TestParameter",
487
Name
= "TestParam",
Dashboard\DashboardServiceTests.cs (2)
321
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text });
368
new Aspire.Hosting.InteractionInput {
Name
= "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (42)
279
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, };
316
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Text, Required = true };
339
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
362
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
383
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Number };
406
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = InputType.Boolean };
439
var input = new InteractionInput {
Name
= "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
473
Name
= "TestLabel",
493
Name
= "TestLabel",
511
Name
= "TestLabel",
546
Name
= "TestLabel",
560
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
561
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText },
562
new InteractionInput {
Name
= "RememberMe", Label = "Remember Me", InputType = InputType.Boolean }
600
new InteractionInput {
Name
= "UserName", Label = "User Name", InputType = InputType.Text },
601
new InteractionInput {
Name
= "EmailAddress", Label = "Email Address", InputType = InputType.Text },
602
new InteractionInput {
Name
= "Age", InputType = InputType.Number }
634
new InteractionInput {
Name
= "ExplicitName", Label = "Explicit", InputType = InputType.Text },
635
new InteractionInput {
Name
= "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text },
636
new InteractionInput {
Name
= "AnotherExplicit", Label = "Another", InputType = InputType.Text }
657
new InteractionInput {
Name
= "Duplicate", Label = "First", InputType = InputType.Text },
658
new InteractionInput {
Name
= "Duplicate", Label = "Second", InputType = InputType.Text }
672
new InteractionInput {
Name
= "Username", Label = "First", InputType = InputType.Text },
673
new InteractionInput {
Name
= "USERNAME", Label = "Second", InputType = InputType.Text }
687
new InteractionInput {
Name
= "Input1", InputType = InputType.Text },
688
new InteractionInput {
Name
= "Input2", InputType = InputType.Text },
689
new InteractionInput {
Name
= "Input3", InputType = InputType.Text }
720
new InteractionInput {
Name
= "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text },
721
new InteractionInput {
Name
= "EmptyLabel", Label = "", InputType = InputType.Text },
722
new InteractionInput {
Name
= "WhitespaceLabel", Label = " ", InputType = InputType.Text }
757
new InteractionInput {
Name
= "Valid", Label = "Valid", InputType = InputType.Text }
773
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
774
new InteractionInput {
Name
= "Password", Label = "Password", InputType = InputType.SecretText }
829
Name
= "Dynamic",
880
new InteractionInput {
Name
= "Username", Label = "Username", InputType = InputType.Text },
883
Name
= "Dynamic",
935
new InteractionInput {
Name
= "Email", Label = "Email", InputType = InputType.Text, Required = true },
936
new InteractionInput {
Name
= "Age", Label = "Age", InputType = InputType.Number, Required = true }
989
Name
= "Choice",
1003
new InteractionInput {
Name
= "Age", Label = "Age", InputType = InputType.Number, Required = true }
1022
Name
= "Choice",
1036
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)
49
Name
= "ApplicationName",
57
Name
= "ApplicationVersion",
65
Name
= "SSLCertificateType",
78
Name
= "SSLCertificateTypeMoreDetails",
133
Name
= "EnvironmentName",
156
Name
= "DatabasePassword",
171
Name
= "Region",
192
Name
= "EnableVerboseLogging",
206
Name
= "InstanceCount",
221
Name
= "Strategy",
Stress.AppHost (22)
InteractionCommands.cs (22)
58
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." };
59
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 };
71
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 };
74
Name
= "Choice",
85
Name
= "Combobox",
144
Name
= "Dinner",
157
Name
= "Requirements",
196
Name
= "Dinner",
224
Name
= "Requirements",
235
var numberOfPeopleInput = new InteractionInput {
Name
= "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
238
new InteractionInput {
Name
= "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
239
new InteractionInput {
Name
= "Password", InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
243
new InteractionInput {
Name
= "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
282
Name
= "PredefinedOptions",
294
Name
= "CustomChoice",
342
Name
= "Dynamic",
352
Name
= "DynamicCustomChoice",
363
Name
= "DynamicTextInput",
421
Name
= "PredefinedOptions",
433
Name
= "CustomChoice",
451
Name
= "Dynamic",
564
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)
328
Name = input.
Name
,
336
UpdateStateOnChange = updateStateOnChangeInputs.Any(i => string.Equals(i, input.
Name
, StringComparisons.InteractionInputName)),
422
dtos.Add(new InputDto(matchingInput.
Name
, responseAnswer.Value ?? "", matchingInput.InputType));
Aspire.Hosting.Azure.Tests (8)
AzureDeployerTests.cs (1)
655
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)
135
logger.LogInformation("Input: {Name} = {Value}", input.
Name
, input.Value);
272
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
411
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
510
logger.LogInformation("Input: {Name} = {Value}", updatedInput.
Name
, updatedInput.Value);
586
logger.LogInformation("Input: {Name} = {Value}", input.
Name
, input.Value);