456 references to InputType
Aspire.Hosting (65)
ApplicationModel\ParameterResource.cs (2)
604
InputType = Secret ?
InputType
.SecretText :
InputType
.Text,
ApplicationModel\ResourceCommandService.cs (6)
588
var value = argument.Value = argument.InputType ==
InputType
.SecretText
619
case
InputType
.Text:
620
case
InputType
.SecretText:
628
case
InputType
.Choice:
634
case
InputType
.Boolean:
640
case
InputType
.Number:
Ats\InteractionExports.cs (7)
178
return InteractionInputBuilder.Create(name,
InputType
.Text, options);
187
return InteractionInputBuilder.Create(name,
InputType
.SecretText, options);
196
return InteractionInputBuilder.Create(name,
InputType
.Boolean, options);
205
return InteractionInputBuilder.Create(name,
InputType
.Number, options);
214
return InteractionInputBuilder.Create(name,
InputType
.File, options);
227
var builder = InteractionInputBuilder.Create(name,
InputType
.Choice, options);
304
internal static InteractionInputBuilder Create(string name,
InputType
inputType, CreateInteractionInputOptions? options)
Ats\ParameterCustomInputOptions.cs (1)
15
public
InputType
? InputType { get; set; }
Dashboard\DashboardService.cs (15)
268
else if (maxFileUploadSize.HasValue && input.InputType ==
InputType
.File)
289
internal static Aspire.DashboardService.Proto.V1.InputType MapInputType(Aspire.Hosting.
InputType
inputType)
293
Aspire.Hosting.
InputType
.Text => Aspire.DashboardService.Proto.V1.InputType.Text,
294
Aspire.Hosting.
InputType
.SecretText => Aspire.DashboardService.Proto.V1.InputType.SecretText,
295
Aspire.Hosting.
InputType
.Choice => Aspire.DashboardService.Proto.V1.InputType.Choice,
296
Aspire.Hosting.
InputType
.Boolean => Aspire.DashboardService.Proto.V1.InputType.Boolean,
297
Aspire.Hosting.
InputType
.Number => Aspire.DashboardService.Proto.V1.InputType.Number,
298
Aspire.Hosting.
InputType
.File => Aspire.DashboardService.Proto.V1.InputType.File,
303
public static Aspire.Hosting.
InputType
MapInputType(Aspire.DashboardService.Proto.V1.InputType inputType)
307
Aspire.DashboardService.Proto.V1.InputType.Text =>
InputType
.Text,
308
Aspire.DashboardService.Proto.V1.InputType.SecretText =>
InputType
.SecretText,
309
Aspire.DashboardService.Proto.V1.InputType.Choice =>
InputType
.Choice,
310
Aspire.DashboardService.Proto.V1.InputType.Boolean =>
InputType
.Boolean,
311
Aspire.DashboardService.Proto.V1.InputType.Number =>
InputType
.Number,
312
Aspire.DashboardService.Proto.V1.InputType.File =>
InputType
.File,
Dashboard\DashboardServiceData.cs (6)
247
public record InputDto(string Name, string Value,
InputType
InputType, IReadOnlyList<InputFileDto>? Files = null);
266
var files = input.InputType ==
InputType
.File
271
else if (input.InputType ==
InputType
.File)
323
if (requestInput.InputType ==
InputType
.Boolean)
328
if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType ==
InputType
.File)
333
if (requestInput.InputType ==
InputType
.File)
IInteractionService.cs (10)
409
public required
InputType
InputType { get; init; }
421
/// Gets or sets the options for the input. Only used by <see cref="
InputType
.Choice"/> inputs.
452
/// Gets a value indicating whether a custom choice is allowed. Only used by <see cref="
InputType
.Choice"/> inputs.
479
/// Gets or sets a value indicating whether multiple files can be selected. Only used by <see cref="
InputType
.File"/> inputs.
484
/// Gets or sets the file type filter for <see cref="
InputType
.File"/> inputs.
492
/// Gets or sets the maximum file size in bytes for <see cref="
InputType
.File"/> inputs.
511
/// Gets the files associated with this <see cref="
InputType
.File"/> input.
526
/// Gets the files associated with this <see cref="
InputType
.File"/> input.
604
/// Represents a file selected by the user for an <see cref="
InputType
.File"/> input.
784
/// <see cref="
InputType
.Number"/> accepts floating point values. Use <see cref="GetDouble(string)"/> for decimal values,
InteractionService.cs (11)
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);
173
var hasFileInputs = inputs.Any(input => input.InputType ==
InputType
.File);
210
.Where(input => input.InputType ==
InputType
.File)
228
if (input.InputType ==
InputType
.Choice)
568
inputsInfo.Inputs.Any(input => input.InputType ==
InputType
.File))
615
if (input.InputType ==
InputType
.File)
642
case
InputType
.Text:
643
case
InputType
.SecretText:
651
case
InputType
.Choice:
661
case
InputType
.Boolean:
667
case
InputType
.Number:
Orchestrator\ParameterProcessor.cs (4)
346
InputType =
InputType
.Boolean,
386
InputType =
InputType
.Boolean,
496
InputType =
InputType
.Boolean,
558
InputType =
InputType
.Boolean,
ParameterResourceBuilderExtensions.cs (2)
297
InputType = options.InputType ?? (parameter.Secret ?
InputType
.SecretText :
InputType
.Text),
Pipelines\PipelineActivityReporter.cs (1)
490
if (matchingInput.InputType ==
InputType
.File)
Aspire.Hosting.Azure (23)
AzureProvisioningController.cs (9)
277
InputType =
InputType
.Choice,
298
InputType =
InputType
.Choice,
319
InputType =
InputType
.Choice,
337
InputType =
InputType
.Choice,
357
InputType =
InputType
.Text,
382
InputType =
InputType
.Choice,
400
InputType =
InputType
.Boolean,
704
InputType = useChoiceInput ?
InputType
.Choice :
InputType
.Text,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (7)
124
InputType =
InputType
.Text,
192
InputType =
InputType
.Choice,
218
InputType =
InputType
.SecretText,
291
InputType =
InputType
.Choice,
317
InputType =
InputType
.SecretText,
385
InputType =
InputType
.Choice,
483
InputType =
InputType
.Choice,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (7)
349
InputType =
InputType
.Choice,
375
InputType = allowSubscriptionEdit ?
InputType
.Choice :
InputType
.Text,
410
InputType = useTextResourceGroupInput ?
InputType
.Text :
InputType
.Choice,
451
InputType =
InputType
.Choice,
492
InputType =
InputType
.Text,
Aspire.Hosting.Azure.Tests (35)
AzureDeployerTests.cs (9)
250
Assert.Equal(
InputType
.Choice, input.InputType);
267
Assert.Equal(
InputType
.Choice, input.InputType);
285
Assert.Equal(
InputType
.Choice, input.InputType);
303
Assert.Equal(
InputType
.Choice, input.InputType);
1010
Assert.Equal(
InputType
.Text, input.InputType);
1060
InputType =
InputType
.Number,
1083
Assert.Equal(
InputType
.Number, input.InputType);
1273
Assert.Equal(
InputType
.Text, input.InputType);
1318
Assert.Equal(
InputType
.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (13)
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" }
425
Assert.Equal(
InputType
.Choice, input.InputType);
435
Assert.Equal(
InputType
.Choice, input.InputType);
446
Assert.Equal(
InputType
.Choice, input.InputType);
457
Assert.Equal(
InputType
.Choice, input.InputType);
1014
Assert.Equal(
InputType
.Boolean, confirmDeleteArgument.InputType);
3312
Assert.Equal(
InputType
.Choice, locationInput.InputType);
5343
InputType =
InputType
.Text,
ProvisioningContextProviderTests.cs (13)
43
Assert.Equal(
InputType
.Text, input.InputType);
164
Assert.Equal(
InputType
.Text, input.InputType);
554
Assert.Equal(
InputType
.Choice, input.InputType);
561
Assert.Equal(
InputType
.Choice, input.InputType);
568
Assert.Equal(
InputType
.Text, input.InputType);
575
Assert.Equal(
InputType
.Choice, input.InputType);
709
Assert.Equal(
InputType
.Choice, input.InputType);
716
Assert.Equal(
InputType
.Choice, input.InputType);
724
Assert.Equal(
InputType
.Text, input.InputType);
731
Assert.Equal(
InputType
.Choice, input.InputType);
851
Assert.Equal(
InputType
.Choice, subscriptionInput.InputType);
1001
Assert.Equal(
InputType
.Choice, subscriptionInput.InputType);
1048
Assert.Equal(
InputType
.Text, resourceGroupInput.InputType);
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
48
InputType =
InputType
.Choice,
63
InputType =
InputType
.Choice,
83
InputType =
InputType
.Choice,
107
InputType =
InputType
.Choice,
131
InputType =
InputType
.Boolean,
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (5)
1736
new InteractionInput { Name = "scope", InputType =
InputType
.Choice, Value = scope },
1737
new InteractionInput { Name = "browser", InputType =
InputType
.Choice, Value = browser },
1738
new InteractionInput { Name = "userDataMode", InputType =
InputType
.Choice, Value = userDataMode },
1739
new InteractionInput { Name = "profile", InputType =
InputType
.Choice, Value = profile },
1740
new InteractionInput { Name = "saveToUserSecrets", InputType =
InputType
.Boolean, Value = saveToUserSecrets },
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
48
InputType =
InputType
.Choice,
63
InputType =
InputType
.Choice,
83
InputType =
InputType
.Choice,
107
InputType =
InputType
.Choice,
131
InputType =
InputType
.Boolean,
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.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
179
Assert.Equal(
InputType
.File, input.InputType);
Aspire.Hosting.Tests (202)
AddParameterTests.cs (16)
737
InputType =
InputType
.Number,
760
Assert.Equal(
InputType
.Text, input.InputType);
826
Assert.Equal(
InputType
.SecretText, input.InputType);
843
InputType =
InputType
.Number,
854
Assert.Equal(
InputType
.Number, input.InputType);
869
InputType =
InputType
.Text,
887
InputType =
InputType
.Text,
905
InputType =
InputType
.Text,
923
InputType =
InputType
.Number,
935
Assert.Equal(
InputType
.Number, input.InputType);
950
InputType =
InputType
.Number,
991
InputType =
InputType
.Number,
1001
Assert.Equal(
InputType
.Number, input.InputType);
1017
[nameof(InteractionInput.InputType)] =
InputType
.Number,
1033
Assert.Equal(
InputType
.Number, input.InputType);
1063
Assert.Equal(
InputType
.SecretText, input.InputType);
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (15)
220
InputType =
InputType
.Text,
315
Assert.Equal(nameof(
InputType
.Text), argumentInput.InputType);
2315
InputType =
InputType
.Text
2320
InputType =
InputType
.Number
2325
InputType =
InputType
.Boolean
2380
InputType =
InputType
.Text
2431
InputType =
InputType
.Text
2436
InputType =
InputType
.Number
2441
InputType =
InputType
.Boolean
2488
InputType =
InputType
.Choice,
2498
InputType =
InputType
.Choice,
2562
InputType =
InputType
.Choice,
2572
InputType =
InputType
.Choice,
2637
InputType =
InputType
.Text
2685
InputType =
InputType
.Text
Dashboard\DashboardServiceTests.cs (18)
180
InputType =
InputType
.Text,
305
InputType =
InputType
.Text
310
InputType =
InputType
.Number
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" });
973
[InlineData(
InputType
.File, 0, -1, 0)] // File, no input max, no server limit → 0
974
[InlineData(
InputType
.File, 0, 50, 50)] // File, no input max, 50 MB server limit → 50 MB
975
[InlineData(
InputType
.File, 5, 100, 5)] // File, 5 MB input max below 100 MB server → uses input
976
[InlineData(
InputType
.File, 200, 100, 100)] // File, 200 MB input max exceeds 100 MB server → capped
977
[InlineData(
InputType
.File, 50, -1, 50)] // File, 50 MB input max, no server limit → uses input
978
[InlineData(
InputType
.Text, 0, 100, 0)] // Non-file, server limit not applied → 0
980
InputType
inputType, int inputMaxFileSizeMB, int serverLimitMB, int expectedMB)
1240
var fileInput = new InteractionInput { Name = "File", InputType =
InputType
.File };
1241
var textInput = new InteractionInput { Name = "Text", InputType =
InputType
.Text };
1280
var input = new InteractionInput { Name = "File", InputType =
InputType
.File, Required = true, AllowMultipleFiles = true };
1345
var input = new InteractionInput { Name = "File", InputType =
InputType
.File };
InteractionServiceTests.cs (78)
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)]);
526
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
535
inputs: [new InputDto("Value", "not-in-options",
InputType
.Choice)]);
549
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
558
inputs: [new InputDto("Value", "not-in-options",
InputType
.Choice)]);
570
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Number };
579
inputs: [new InputDto("Value", "one",
InputType
.Number)]);
593
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Boolean };
602
inputs: [new InputDto("Value", "maybe",
InputType
.Number)]);
612
[InlineData(
InputType
.Text, null)]
613
[InlineData(
InputType
.Text, 1)]
614
[InlineData(
InputType
.Text, 10)]
615
[InlineData(
InputType
.Text, InteractionHelpers.DefaultMaxLength)]
616
[InlineData(
InputType
.SecretText, 10)]
617
public async Task PromptInputsAsync_TextExceedsLimit_ReturnErrors(
InputType
inputType, int? maxLength)
622
static async Task TextExceedsLimitCoreAsync(
InputType
inputType, int? maxLength, bool success)
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 },
748
new InteractionInput { Name = "Password", Label = "Password", InputType =
InputType
.SecretText },
749
new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType =
InputType
.Boolean }
787
new InteractionInput { Name = "UserName", Label = "User Name", InputType =
InputType
.Text },
788
new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType =
InputType
.Text },
789
new InteractionInput { Name = "Age", InputType =
InputType
.Number }
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 },
961
new InteractionInput { Name = "Password", Label = "Password", InputType =
InputType
.SecretText }
974
new InputDto("Username", "testuser",
InputType
.Text),
975
new InputDto("Password", "testpass",
InputType
.SecretText)
1017
InputType =
InputType
.Choice,
1067
new InteractionInput { Name = "Username", Label = "Username", InputType =
InputType
.Text },
1071
InputType =
InputType
.Choice,
1098
inputs: [new InputDto("Username", "testuser",
InputType
.Text)]).DefaultTimeout();
1122
new InteractionInput { Name = "Email", Label = "Email", InputType =
InputType
.Text, Required = true },
1123
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1156
new InputDto("Email", "test@example.com",
InputType
.Text),
1157
new InputDto("Age", "25",
InputType
.Number)
1178
InputType =
InputType
.Choice,
1190
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1211
InputType =
InputType
.Choice,
1223
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1457
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = true };
1467
inputs: [new InputDto("File", "file-content-here",
InputType
.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1486
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File };
1511
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File };
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 };
1577
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = true };
1586
inputs: [new InputDto("File", string.Empty,
InputType
.File)]);
1600
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = false };
1609
inputs: [new InputDto("File", string.Empty,
InputType
.File)]);
1628
InputType =
InputType
.File,
1643
inputs: [new InputDto("File", "files",
InputType
.File, files)]);
1666
InputType =
InputType
.File,
1673
InputType =
InputType
.File,
1684
InputType =
InputType
.File,
1697
InputType =
InputType
.File
Orchestrator\ParameterProcessorTests.cs (23)
298
Assert.Equal(
InputType
.Text, input.InputType);
304
Assert.Equal(
InputType
.Text, input.InputType);
310
Assert.Equal(
InputType
.SecretText, input.InputType);
316
Assert.Equal(
InputType
.Boolean, input.InputType);
621
Assert.Equal(
InputType
.Text, param1Input.InputType);
627
Assert.Equal(
InputType
.Text, param2Input.InputType);
664
Assert.Equal(
InputType
.SecretText, secretInput.InputType);
700
Assert.Equal(
InputType
.Boolean, saveCheckbox.InputType);
739
Assert.Equal(
InputType
.Boolean, saveCheckbox.InputType);
1315
InputType =
InputType
.Number,
1347
InputType =
InputType
.Text,
1354
InputType =
InputType
.Choice,
1393
InputType =
InputType
.Text,
1401
InputType =
InputType
.Choice,
1435
InputType =
InputType
.Choice,
1488
InputType =
InputType
.Text,
1495
InputType =
InputType
.Choice,
1517
static InteractionInput CreateInput(string name) => new() { Name = name, InputType =
InputType
.Text, Label = name };
1530
InputType =
InputType
.Choice,
1572
InputType =
InputType
.Text,
1854
InputType =
InputType
.Text,
1860
InputType =
InputType
.Boolean,
1872
InputType =
InputType
.Boolean,
Publishing\PipelineActivityReporterTests.cs (2)
652
InputType =
InputType
.File,
693
InputType =
InputType
.File
ResourceCommandServiceTests.cs (35)
532
InputType =
InputType
.Text
537
InputType =
InputType
.Number
547
InputType =
InputType
.Text,
553
InputType =
InputType
.Number,
590
InputType =
InputType
.Text,
631
InputType =
InputType
.Text,
671
InputType =
InputType
.SecretText,
682
InputType =
InputType
.SecretText,
713
InputType =
InputType
.Text
718
InputType =
InputType
.Number,
724
InputType =
InputType
.Boolean,
758
InputType =
InputType
.Text
789
InputType =
InputType
.Text
820
InputType =
InputType
.Boolean,
852
InputType =
InputType
.Choice,
893
InputType =
InputType
.Boolean,
956
InputType =
InputType
.Text,
998
InputType =
InputType
.Choice,
1005
InputType =
InputType
.Choice,
1071
InputType =
InputType
.Choice,
1078
InputType =
InputType
.Choice,
1096
InputType =
InputType
.Choice,
1163
InputType =
InputType
.Choice,
1170
InputType =
InputType
.Choice,
1233
InputType =
InputType
.Text,
1285
InputType =
InputType
.Text,
1335
InputType =
InputType
.Text
1340
InputType =
InputType
.Text,
1443
InputType =
InputType
.Boolean,
1450
InputType =
InputType
.Number,
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,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
55
InputType =
InputType
.Number,
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
48
InputType =
InputType
.Text,
56
InputType =
InputType
.Text,
64
InputType =
InputType
.Choice,
77
InputType =
InputType
.Choice,
99
InputType =
InputType
.File,
150
InputType =
InputType
.Text,
173
InputType =
InputType
.SecretText,
188
InputType =
InputType
.Choice,
209
InputType =
InputType
.Boolean,
223
InputType =
InputType
.Number,
238
InputType =
InputType
.Choice,
Stress.AppHost (89)
CommandResources.cs (52)
150
InputType =
InputType
.Text,
158
InputType =
InputType
.Number,
165
InputType =
InputType
.Boolean
208
InputType =
InputType
.Text,
218
InputType =
InputType
.Number,
226
InputType =
InputType
.Boolean,
234
InputType =
InputType
.Choice,
248
InputType =
InputType
.SecretText,
303
InputType =
InputType
.Text,
313
InputType =
InputType
.Choice,
327
InputType =
InputType
.Number,
335
InputType =
InputType
.Boolean,
351
.Where(i => i.InputType is
InputType
.Text or
InputType
.SecretText or
InputType
.Choice)
353
NumberCount = inputsWithValues.Count(i => i.InputType ==
InputType
.Number),
354
BooleanCount = inputsWithValues.Count(i => i.InputType ==
InputType
.Boolean),
394
InputType =
InputType
.Choice,
409
InputType =
InputType
.Choice,
452
InputType =
InputType
.Number,
461
InputType =
InputType
.Choice,
554
InputType =
InputType
.Choice,
582
InputType =
InputType
.Text,
656
InputType =
InputType
.Text,
665
InputType =
InputType
.Text,
711
InputType =
InputType
.Choice,
725
InputType =
InputType
.Number,
757
InputType =
InputType
.Choice,
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,
1063
InputType =
InputType
.Boolean,
1071
InputType =
InputType
.Number,
1080
InputType =
InputType
.Number,
1090
InputType =
InputType
.Boolean,
1098
InputType =
InputType
.Number,
1107
InputType =
InputType
.Boolean,
1115
InputType =
InputType
.Number,
1124
InputType =
InputType
.Boolean,
1132
InputType =
InputType
.Number,
1142
InputType =
InputType
.Boolean,
1150
InputType =
InputType
.Number,
1159
InputType =
InputType
.Number,
1389
InputType =
InputType
.Text,
1399
InputType =
InputType
.Number,
1408
InputType =
InputType
.Boolean,
1421
InputType =
InputType
.Text,
InteractionCommands.cs (37)
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 };
92
InputType =
InputType
.Choice,
103
InputType =
InputType
.Choice,
162
InputType =
InputType
.Choice,
175
InputType =
InputType
.Choice,
214
InputType =
InputType
.Choice,
242
InputType =
InputType
.Choice,
252
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType =
InputType
.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = 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 },
256
new InteractionInput { Name = "Password", InputType =
InputType
.SecretText, Label = "Password", Description = "The password for the reservation. Maximum 20 characters.", Placeholder = "Enter password", Required = true, MaxLength = 20 },
260
new InteractionInput { Name = "RememberMe", InputType =
InputType
.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
302
InputType =
InputType
.Text,
311
InputType =
InputType
.SecretText,
320
InputType =
InputType
.Choice,
331
InputType =
InputType
.Choice,
342
InputType =
InputType
.Number,
351
InputType =
InputType
.Boolean,
360
InputType =
InputType
.File,
381
InputType =
InputType
.Choice,
393
InputType =
InputType
.Choice,
441
InputType =
InputType
.Choice,
451
InputType =
InputType
.Choice,
462
InputType =
InputType
.Text,
520
InputType =
InputType
.Choice,
532
InputType =
InputType
.Choice,
550
InputType =
InputType
.Choice,
584
new InteractionInput { Name = "Receipt", InputType =
InputType
.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
611
if (updatedInput.InputType ==
InputType
.File && files.Count > 0)
670
InputType =
InputType
.Text,
703
InputType =
InputType
.Choice,
726
InputType =
InputType
.Choice,
765
InputType =
InputType
.Choice,
796
InputType =
InputType
.Choice,
1090
InputType =
InputType
.File,
1135
InputType =
InputType
.File,
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
301
InputType =
InputType
.Number,
TestShop.AppHost (5)
AppHost.cs (5)
28
InputType =
InputType
.Choice,
44
InputType =
InputType
.Choice,
61
InputType =
InputType
.Number,
72
InputType =
InputType
.Boolean,
82
InputType =
InputType
.File,