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