165 references to Text
Aspire.Hosting (8)
ApplicationModel\ParameterResource.cs (1)
604InputType = 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)
293Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text, 307Aspire.DashboardService.Proto.V1.InputType.Text => InputType.Text,
InteractionService.cs (2)
151return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 642case InputType.Text:
ParameterResourceBuilderExtensions.cs (1)
297InputType = options.InputType ?? (parameter.Secret ? InputType.SecretText : InputType.Text),
Aspire.Hosting.Azure (6)
AzureProvisioningController.cs (2)
357InputType = InputType.Text, 704InputType = useChoiceInput ? InputType.Choice : InputType.Text,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
124InputType = InputType.Text,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (3)
375InputType = allowSubscriptionEdit ? InputType.Choice : InputType.Text, 410InputType = useTextResourceGroupInput ? InputType.Text : InputType.Choice, 492InputType = InputType.Text,
Aspire.Hosting.Azure.Tests (15)
AzureDeployerTests.cs (3)
1010Assert.Equal(InputType.Text, input.InputType); 1273Assert.Equal(InputType.Text, input.InputType); 1318Assert.Equal(InputType.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (7)
279Assert.Equal(InputType.Text, suffix.InputType); 311new() { Name = "tenantId", InputType = InputType.Text, Value = "87654321-4321-4321-4321-210987654321" }, 312new() { Name = "subscriptionId", InputType = InputType.Text, Value = "12345678-1234-1234-1234-123456789012" }, 313new() { Name = "resourceGroup", InputType = InputType.Text, Value = "test-rg" }, 314new() { Name = "location", InputType = InputType.Text, Value = "westus2" }, 315new() { Name = AzureBicepResource.KnownParameters.TenantResourceSuffix, InputType = InputType.Text, Value = "dev-a" } 5343InputType = InputType.Text,
ProvisioningContextProviderTests.cs (5)
43Assert.Equal(InputType.Text, input.InputType); 164Assert.Equal(InputType.Text, input.InputType); 568Assert.Equal(InputType.Text, input.InputType); 724Assert.Equal(InputType.Text, input.InputType); 1048Assert.Equal(InputType.Text, resourceGroupInput.InputType);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
837InputType = 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)
93Assert.Equal(InputType.Text, argument.InputType); 117InputType = InputType.Text, 182InputType = InputType.Text,
PromptAgentTests.cs (1)
198InputType = InputType.Text,
Aspire.Hosting.Tests (101)
AddParameterTests.cs (4)
760Assert.Equal(InputType.Text, input.InputType); 869InputType = InputType.Text, 887InputType = InputType.Text, 905InputType = InputType.Text,
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
220InputType = InputType.Text, 315Assert.Equal(nameof(InputType.Text), argumentInput.InputType); 2315InputType = InputType.Text 2380InputType = InputType.Text 2431InputType = InputType.Text 2637InputType = InputType.Text 2685InputType = InputType.Text
Dashboard\DashboardServiceTests.cs (8)
180InputType = InputType.Text, 305InputType = InputType.Text 368InputType = InputType.Text, 425InputType = InputType.Text 571new InteractionInput { Name = "Input", InputType = InputType.Text }); 771new InteractionInput { Name = "Input", InputType = InputType.Text, Label = "Input" }); 978[InlineData(InputType.Text, 0, 100, 0)] // Non-file, server limit not applied → 0 1241var textInput = new InteractionInput { Name = "Text", InputType = InputType.Text };
InteractionServiceTests.cs (40)
466var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 488inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 503var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 512inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 612[InlineData(InputType.Text, null)] 613[InlineData(InputType.Text, 1)] 614[InlineData(InputType.Text, 10)] 615[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 637inputs: [new InputDto("Value", newValue, InputType.Text)]); 662InputType = InputType.Text, 669Assert.Equal(InputType.Text, input.InputType); 682InputType = InputType.Text, 700InputType = InputType.Text, 735InputType = InputType.Text, 747new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 787new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 788new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 821new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 822new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 823new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 844new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 845new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 859new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 860new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 874new InteractionInput { Name = "Input1", InputType = InputType.Text }, 875new InteractionInput { Name = "Input2", InputType = InputType.Text }, 876new InteractionInput { Name = "Input3", InputType = InputType.Text } 907new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 908new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 909new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 944new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 960new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 974new InputDto("Username", "testuser", InputType.Text), 1067new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 1098inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout(); 1122new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 1156new InputDto("Email", "test@example.com", InputType.Text), 1530var input = new InteractionInput { Name = "Text", InputType = InputType.Text }; 1538inputs: [new InputDto("Text", "value", InputType.Text)]); 1554var input = new InteractionInput { Name = "Text", InputType = InputType.Text };
Orchestrator\ParameterProcessorTests.cs (10)
298Assert.Equal(InputType.Text, input.InputType); 304Assert.Equal(InputType.Text, input.InputType); 621Assert.Equal(InputType.Text, param1Input.InputType); 627Assert.Equal(InputType.Text, param2Input.InputType); 1347InputType = InputType.Text, 1393InputType = InputType.Text, 1488InputType = InputType.Text, 1517static InteractionInput CreateInput(string name) => new() { Name = name, InputType = InputType.Text, Label = name }; 1572InputType = InputType.Text, 1854InputType = InputType.Text,
ResourceCommandServiceTests.cs (17)
532InputType = InputType.Text 547InputType = InputType.Text, 590InputType = InputType.Text, 631InputType = InputType.Text, 713InputType = InputType.Text 758InputType = InputType.Text 789InputType = InputType.Text 956InputType = InputType.Text, 1233InputType = InputType.Text, 1285InputType = InputType.Text, 1335InputType = InputType.Text 1340InputType = InputType.Text, 1515InputType = InputType.Text, 1626InputType = InputType.Text, 1632InputType = InputType.Text, 1643InputType = InputType.Text, 1683InputType = 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)
150InputType = InputType.Text, 208InputType = InputType.Text, 303InputType = InputType.Text, 351.Where(i => i.InputType is InputType.Text or InputType.SecretText or InputType.Choice) 582InputType = InputType.Text, 656InputType = InputType.Text, 665InputType = InputType.Text, 791InputType = InputType.Text, 800InputType = InputType.Text, 829InputType = InputType.Text, 838InputType = InputType.Text, 847InputType = InputType.Text, 876InputType = InputType.Text, 886InputType = InputType.Text, 896InputType = InputType.Text, 1389InputType = InputType.Text, 1421InputType = InputType.Text,
InteractionCommands.cs (7)
75var 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." }; 76var 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 }; 88var 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 }; 255new 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 }, 302InputType = InputType.Text, 462InputType = InputType.Text, 670InputType = InputType.Text,