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