142 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)
265Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text, 279Aspire.DashboardService.Proto.V1.InputType.Text => InputType.Text,
InteractionService.cs (2)
140return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 592case InputType.Text:
ParameterResourceBuilderExtensions.cs (1)
267InputType = options.InputType ?? (parameter.Secret ? InputType.SecretText : InputType.Text),
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (1)
681InputType = useChoiceInput ? InputType.Choice : InputType.Text,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
364InputType = allowSubscriptionEdit ? InputType.Choice : InputType.Text, 399InputType = useTextResourceGroupInput ? InputType.Text : InputType.Choice,
Aspire.Hosting.Azure.Tests (7)
AzureDeployerTests.cs (3)
762Assert.Equal(InputType.Text, input.InputType); 1025Assert.Equal(InputType.Text, input.InputType); 1070Assert.Equal(InputType.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (1)
4988InputType = InputType.Text,
ProvisioningContextProviderTests.cs (3)
370Assert.Equal(InputType.Text, input.InputType); 524Assert.Equal(InputType.Text, input.InputType); 842Assert.Equal(InputType.Text, resourceGroupInput.InputType);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
756InputType = InputType.Text,
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
329InputType = InputType.Text,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
121InputType = InputType.Text,
Aspire.Hosting.Foundry.Tests (4)
HostedAgentExtensionTests.cs (3)
89Assert.Equal(InputType.Text, argument.InputType); 113InputType = InputType.Text, 178InputType = InputType.Text,
PromptAgentTests.cs (1)
110InputType = InputType.Text,
Aspire.Hosting.Tests (90)
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)
175InputType = InputType.Text, 300InputType = InputType.Text 363InputType = InputType.Text, 420InputType = InputType.Text 564new InteractionInput { Name = "Input", InputType = InputType.Text }); 612new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 817[InlineData(InputType.Text, 0, 100, 0)] // Non-file, server limit not applied → 0 1079var 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)
221Assert.Equal(InputType.Text, input.InputType); 227Assert.Equal(InputType.Text, input.InputType); 460Assert.Equal(InputType.Text, param1Input.InputType); 466Assert.Equal(InputType.Text, param2Input.InputType); 1239InputType = InputType.Text,
ResourceCommandServiceTests.cs (15)
530InputType = InputType.Text 545InputType = InputType.Text, 588InputType = InputType.Text, 629InputType = InputType.Text, 711InputType = InputType.Text 756InputType = InputType.Text 787InputType = InputType.Text 954InputType = InputType.Text, 1231InputType = InputType.Text, 1283InputType = InputType.Text, 1410InputType = InputType.Text, 1521InputType = InputType.Text, 1527InputType = InputType.Text, 1538InputType = InputType.Text, 1578InputType = InputType.Text,
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)
50InputType = InputType.Text, 58InputType = InputType.Text, 152InputType = InputType.Text,
Stress.AppHost (23)
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, 1311InputType = InputType.Text, 1343InputType = InputType.Text,
InteractionCommands.cs (6)
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", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 365InputType = InputType.Text, 573InputType = InputType.Text,