146 references to Text
Aspire.Hosting (8)
ApplicationModel\ParameterResource.cs (1)
169InputType = Secret ? InputType.SecretText : InputType.Text,
ApplicationModel\ResourceCommandService.cs (1)
619case InputType.Text:
Ats\InteractionExports.cs (1)
178return InteractionInputBuilder.Create(name, InputType.Text, options);
Dashboard\DashboardService.cs (2)
288Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text, 302Aspire.DashboardService.Proto.V1.InputType.Text => InputType.Text,
InteractionService.cs (2)
144return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 635case InputType.Text:
ParameterResourceBuilderExtensions.cs (1)
265InputType = options.InputType ?? (parameter.Secret ? InputType.SecretText : InputType.Text),
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (1)
678InputType = useChoiceInput ? InputType.Choice : InputType.Text,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
362InputType = allowSubscriptionEdit ? InputType.Choice : InputType.Text, 397InputType = useTextResourceGroupInput ? InputType.Text : InputType.Choice,
Aspire.Hosting.Azure.Tests (7)
AzureDeployerTests.cs (3)
821Assert.Equal(InputType.Text, input.InputType); 1084Assert.Equal(InputType.Text, input.InputType); 1129Assert.Equal(InputType.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (1)
4997InputType = InputType.Text,
ProvisioningContextProviderTests.cs (3)
367Assert.Equal(InputType.Text, input.InputType); 521Assert.Equal(InputType.Text, input.InputType); 839Assert.Equal(InputType.Text, resourceGroupInput.InputType);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
842InputType = InputType.Text,
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
331InputType = InputType.Text,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
121InputType = InputType.Text,
Aspire.Hosting.Foundry.Tests (4)
HostedAgentExtensionTests.cs (3)
90Assert.Equal(InputType.Text, argument.InputType); 114InputType = InputType.Text, 179InputType = InputType.Text,
PromptAgentTests.cs (1)
108InputType = InputType.Text,
Aspire.Hosting.Tests (93)
AddParameterTests.cs (1)
429Assert.Equal(InputType.Text, input.InputType);
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
218InputType = InputType.Text, 310Assert.Equal(nameof(InputType.Text), argumentInput.InputType); 2268InputType = InputType.Text 2333InputType = InputType.Text 2384InputType = InputType.Text 2590InputType = InputType.Text 2638InputType = InputType.Text
Dashboard\DashboardServiceTests.cs (8)
180InputType = InputType.Text, 305InputType = InputType.Text 368InputType = InputType.Text, 425InputType = InputType.Text 569new InteractionInput { Name = "Input", InputType = InputType.Text }); 731new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 936[InlineData(InputType.Text, 0, 100, 0)] // Non-file, server limit not applied → 0 1198var textInput = new InteractionInput { Name = "Text", InputType = InputType.Text };
InteractionServiceTests.cs (40)
362var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 384inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 399var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 408inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 508[InlineData(InputType.Text, null)] 509[InlineData(InputType.Text, 1)] 510[InlineData(InputType.Text, 10)] 511[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 533inputs: [new InputDto("Value", newValue, InputType.Text)]); 558InputType = InputType.Text, 565Assert.Equal(InputType.Text, input.InputType); 578InputType = InputType.Text, 596InputType = InputType.Text, 631InputType = InputType.Text, 643new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 683new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 684new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 717new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 718new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 719new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 740new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 741new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 755new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 756new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 770new InteractionInput { Name = "Input1", InputType = InputType.Text }, 771new InteractionInput { Name = "Input2", InputType = InputType.Text }, 772new InteractionInput { Name = "Input3", InputType = InputType.Text } 803new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 804new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 805new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 840new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 856new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 870new InputDto("Username", "testuser", InputType.Text), 963new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 994inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout(); 1018new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 1052new InputDto("Email", "test@example.com", InputType.Text), 1425var input = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1433inputs: [new InputDto("Text", "value", InputType.Text)]); 1449var input = new InteractionInput { Name = "Text", InputType = InputType.Text };
Orchestrator\ParameterProcessorTests.cs (5)
219Assert.Equal(InputType.Text, input.InputType); 225Assert.Equal(InputType.Text, input.InputType); 458Assert.Equal(InputType.Text, param1Input.InputType); 464Assert.Equal(InputType.Text, param2Input.InputType); 1237InputType = InputType.Text,
ResourceCommandServiceTests.cs (17)
531InputType = InputType.Text 546InputType = InputType.Text, 589InputType = InputType.Text, 630InputType = InputType.Text, 712InputType = InputType.Text 757InputType = InputType.Text 788InputType = InputType.Text 955InputType = InputType.Text, 1232InputType = InputType.Text, 1284InputType = InputType.Text, 1333InputType = InputType.Text 1338InputType = InputType.Text, 1513InputType = InputType.Text, 1624InputType = InputType.Text, 1630InputType = InputType.Text, 1641InputType = InputType.Text, 1681InputType = InputType.Text,
Terminals\InteractionServiceTerminalTests.cs (1)
118var input = new InteractionInput { Name = "text", InputType = InputType.Text, Required = true, Value = "value" };
WithHttpCommandTests.cs (5)
272InputType = InputType.Text, 365InputType = InputType.Text, 382InputType = InputType.Text, 754InputType = InputType.Text, 783InputType = InputType.Text,
WithProcessCommandTests.cs (9)
66InputType = InputType.Text 171InputType = InputType.Text 185InputType = InputType.Text, 243InputType = InputType.Text 264InputType = InputType.Text, 366InputType = InputType.Text 379InputType = InputType.Text, 423InputType = InputType.Text 1433InputType = InputType.Text,
ExternalServices.AppHost (1)
AppHost.cs (1)
13InputType = InputType.Text,
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
48InputType = InputType.Text, 56InputType = InputType.Text, 150InputType = InputType.Text,
Stress.AppHost (24)
CommandResources.cs (17)
149InputType = InputType.Text, 207InputType = InputType.Text, 302InputType = InputType.Text, 350.Where(i => i.InputType is InputType.Text or InputType.SecretText or InputType.Choice) 581InputType = InputType.Text, 655InputType = InputType.Text, 664InputType = InputType.Text, 790InputType = InputType.Text, 799InputType = InputType.Text, 828InputType = InputType.Text, 837InputType = InputType.Text, 846InputType = InputType.Text, 875InputType = InputType.Text, 885InputType = InputType.Text, 895InputType = InputType.Text, 1388InputType = InputType.Text, 1420InputType = InputType.Text,
InteractionCommands.cs (7)
59var 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." }; 60var 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 }; 72var 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 }; 239new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Description = "The name for the dinner reservation. Maximum 50 characters.", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 286InputType = InputType.Text, 446InputType = InputType.Text, 654InputType = InputType.Text,