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