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