162 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)
289
Aspire.Hosting.InputType.
Text
=> Aspire.DashboardService.Proto.V1.InputType.Text,
303
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)
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" }
5318
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 (98)
AddParameterTests.cs (4)
728
Assert.Equal(InputType.
Text
, input.InputType);
837
InputType = InputType.
Text
,
855
InputType = InputType.
Text
,
873
InputType = InputType.
Text
,
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
218
InputType = InputType.
Text
,
310
Assert.Equal(nameof(InputType.
Text
), argumentInput.InputType);
2310
InputType = InputType.
Text
2375
InputType = InputType.
Text
2426
InputType = InputType.
Text
2632
InputType = InputType.
Text
2680
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
});
767
new InteractionInput { Name = "Input", InputType = InputType.
Text
, Label = "Input" });
972
[InlineData(InputType.
Text
, 0, 100, 0)] // Non-file, server limit not applied → 0
1234
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 (7)
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
,
1392
InputType = InputType.
Text
,
1674
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)
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)
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
,