415 references to InputType
Aspire.Hosting (65)
ApplicationModel\ParameterResource.cs (2)
169
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)
244
else if (maxFileUploadSize.HasValue && input.InputType ==
InputType
.File)
261
internal static Aspire.DashboardService.Proto.V1.InputType MapInputType(Aspire.Hosting.
InputType
inputType)
265
Aspire.Hosting.
InputType
.Text => Aspire.DashboardService.Proto.V1.InputType.Text,
266
Aspire.Hosting.
InputType
.SecretText => Aspire.DashboardService.Proto.V1.InputType.SecretText,
267
Aspire.Hosting.
InputType
.Choice => Aspire.DashboardService.Proto.V1.InputType.Choice,
268
Aspire.Hosting.
InputType
.Boolean => Aspire.DashboardService.Proto.V1.InputType.Boolean,
269
Aspire.Hosting.
InputType
.Number => Aspire.DashboardService.Proto.V1.InputType.Number,
270
Aspire.Hosting.
InputType
.File => Aspire.DashboardService.Proto.V1.InputType.File,
275
public static Aspire.Hosting.
InputType
MapInputType(Aspire.DashboardService.Proto.V1.InputType inputType)
279
Aspire.DashboardService.Proto.V1.InputType.Text =>
InputType
.Text,
280
Aspire.DashboardService.Proto.V1.InputType.SecretText =>
InputType
.SecretText,
281
Aspire.DashboardService.Proto.V1.InputType.Choice =>
InputType
.Choice,
282
Aspire.DashboardService.Proto.V1.InputType.Boolean =>
InputType
.Boolean,
283
Aspire.DashboardService.Proto.V1.InputType.Number =>
InputType
.Number,
284
Aspire.DashboardService.Proto.V1.InputType.File =>
InputType
.File,
Dashboard\DashboardServiceData.cs (6)
239
public record InputDto(string Name, string Value,
InputType
InputType, IReadOnlyList<InputFileDto>? Files = null);
258
var files = input.InputType ==
InputType
.File
263
else if (input.InputType ==
InputType
.File)
315
if (requestInput.InputType ==
InputType
.Boolean)
320
if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType ==
InputType
.File)
325
if (requestInput.InputType ==
InputType
.File)
IInteractionService.cs (10)
336
public required
InputType
InputType { get; init; }
348
/// Gets or sets the options for the input. Only used by <see cref="
InputType
.Choice"/> inputs.
379
/// Gets a value indicating whether a custom choice is allowed. Only used by <see cref="
InputType
.Choice"/> inputs.
406
/// Gets or sets a value indicating whether multiple files can be selected. Only used by <see cref="
InputType
.File"/> inputs.
411
/// Gets or sets the file type filter for <see cref="
InputType
.File"/> inputs.
419
/// Gets or sets the maximum file size in bytes for <see cref="
InputType
.File"/> inputs.
438
/// Gets the files associated with this <see cref="
InputType
.File"/> input.
453
/// Gets the files associated with this <see cref="
InputType
.File"/> input.
531
/// Represents a file selected by the user for an <see cref="
InputType
.File"/> input.
711
/// <see cref="
InputType
.Number"/> accepts floating point values. Use <see cref="GetDouble(string)"/> for decimal values,
InteractionService.cs (11)
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);
162
var hasFileInputs = inputs.Any(input => input.InputType ==
InputType
.File);
199
.Where(input => input.InputType ==
InputType
.File)
217
if (input.InputType ==
InputType
.Choice)
518
inputsInfo.Inputs.Any(input => input.InputType ==
InputType
.File))
565
if (input.InputType ==
InputType
.File)
592
case
InputType
.Text:
593
case
InputType
.SecretText:
601
case
InputType
.Choice:
611
case
InputType
.Boolean:
617
case
InputType
.Number:
Orchestrator\ParameterProcessor.cs (4)
239
InputType =
InputType
.Boolean,
279
InputType =
InputType
.Boolean,
385
InputType =
InputType
.Boolean,
417
InputType =
InputType
.Boolean,
ParameterResourceBuilderExtensions.cs (2)
267
InputType = options.InputType ?? (parameter.Secret ?
InputType
.SecretText :
InputType
.Text),
Pipelines\PipelineActivityReporter.cs (1)
492
if (matchingInput.InputType ==
InputType
.File)
Aspire.Hosting.Azure (20)
AzureProvisioningController.cs (8)
278
InputType =
InputType
.Choice,
299
InputType =
InputType
.Choice,
320
InputType =
InputType
.Choice,
338
InputType =
InputType
.Choice,
360
InputType =
InputType
.Choice,
378
InputType =
InputType
.Boolean,
681
InputType = useChoiceInput ?
InputType
.Choice :
InputType
.Text,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
161
InputType =
InputType
.Choice,
187
InputType =
InputType
.SecretText,
260
InputType =
InputType
.Choice,
286
InputType =
InputType
.SecretText,
354
InputType =
InputType
.Choice,
452
InputType =
InputType
.Choice,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (6)
338
InputType =
InputType
.Choice,
364
InputType = allowSubscriptionEdit ?
InputType
.Choice :
InputType
.Text,
399
InputType = useTextResourceGroupInput ?
InputType
.Text :
InputType
.Choice,
440
InputType =
InputType
.Choice,
Aspire.Hosting.Azure.Tests (27)
AzureDeployerTests.cs (9)
64
Assert.Equal(
InputType
.Choice, input.InputType);
81
Assert.Equal(
InputType
.Choice, input.InputType);
99
Assert.Equal(
InputType
.Choice, input.InputType);
117
Assert.Equal(
InputType
.Choice, input.InputType);
762
Assert.Equal(
InputType
.Text, input.InputType);
812
InputType =
InputType
.Number,
835
Assert.Equal(
InputType
.Number, input.InputType);
1025
Assert.Equal(
InputType
.Text, input.InputType);
1070
Assert.Equal(
InputType
.Text, input.InputType);
AzureEnvironmentResourceExtensionsTests.cs (7)
129
Assert.Equal(
InputType
.Choice, input.InputType);
139
Assert.Equal(
InputType
.Choice, input.InputType);
150
Assert.Equal(
InputType
.Choice, input.InputType);
161
Assert.Equal(
InputType
.Choice, input.InputType);
671
Assert.Equal(
InputType
.Boolean, confirmDeleteArgument.InputType);
2969
Assert.Equal(
InputType
.Choice, locationInput.InputType);
4988
InputType =
InputType
.Text,
ProvisioningContextProviderTests.cs (11)
356
Assert.Equal(
InputType
.Choice, input.InputType);
363
Assert.Equal(
InputType
.Choice, input.InputType);
370
Assert.Equal(
InputType
.Text, input.InputType);
377
Assert.Equal(
InputType
.Choice, input.InputType);
509
Assert.Equal(
InputType
.Choice, input.InputType);
516
Assert.Equal(
InputType
.Choice, input.InputType);
524
Assert.Equal(
InputType
.Text, input.InputType);
531
Assert.Equal(
InputType
.Choice, input.InputType);
649
Assert.Equal(
InputType
.Choice, subscriptionInput.InputType);
796
Assert.Equal(
InputType
.Choice, subscriptionInput.InputType);
842
Assert.Equal(
InputType
.Text, resourceGroupInput.InputType);
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
49
InputType =
InputType
.Choice,
64
InputType =
InputType
.Choice,
84
InputType =
InputType
.Choice,
108
InputType =
InputType
.Choice,
132
InputType =
InputType
.Boolean,
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (5)
1737
new InteractionInput { Name = "scope", InputType =
InputType
.Choice, Value = scope },
1738
new InteractionInput { Name = "browser", InputType =
InputType
.Choice, Value = browser },
1739
new InteractionInput { Name = "userDataMode", InputType =
InputType
.Choice, Value = userDataMode },
1740
new InteractionInput { Name = "profile", InputType =
InputType
.Choice, Value = profile },
1741
new InteractionInput { Name = "saveToUserSecrets", InputType =
InputType
.Boolean, Value = saveToUserSecrets },
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (5)
49
InputType =
InputType
.Choice,
64
InputType =
InputType
.Choice,
84
InputType =
InputType
.Choice,
108
InputType =
InputType
.Choice,
132
InputType =
InputType
.Boolean,
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.RemoteHost.Tests (1)
AtsExportsTests.cs (1)
179
Assert.Equal(
InputType
.File, input.InputType);
Aspire.Hosting.Tests (185)
AddParameterTests.cs (13)
406
InputType =
InputType
.Number,
429
Assert.Equal(
InputType
.Text, input.InputType);
482
Assert.Equal(
InputType
.SecretText, input.InputType);
499
InputType =
InputType
.Number,
510
Assert.Equal(
InputType
.Number, input.InputType);
526
InputType =
InputType
.Number,
538
Assert.Equal(
InputType
.Number, input.InputType);
553
InputType =
InputType
.Number,
594
InputType =
InputType
.Number,
604
Assert.Equal(
InputType
.Number, input.InputType);
620
[nameof(InteractionInput.InputType)] =
InputType
.Number,
636
Assert.Equal(
InputType
.Number, input.InputType);
666
Assert.Equal(
InputType
.SecretText, input.InputType);
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (15)
218
InputType =
InputType
.Text,
310
Assert.Equal(nameof(
InputType
.Text), argumentInput.InputType);
2268
InputType =
InputType
.Text
2273
InputType =
InputType
.Number
2278
InputType =
InputType
.Boolean
2333
InputType =
InputType
.Text
2384
InputType =
InputType
.Text
2389
InputType =
InputType
.Number
2394
InputType =
InputType
.Boolean
2441
InputType =
InputType
.Choice,
2451
InputType =
InputType
.Choice,
2515
InputType =
InputType
.Choice,
2525
InputType =
InputType
.Choice,
2590
InputType =
InputType
.Text
2638
InputType =
InputType
.Text
Dashboard\DashboardServiceTests.cs (18)
175
InputType =
InputType
.Text,
300
InputType =
InputType
.Text
305
InputType =
InputType
.Number
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" });
812
[InlineData(
InputType
.File, 0, -1, 0)] // File, no input max, no server limit → 0
813
[InlineData(
InputType
.File, 0, 50, 50)] // File, no input max, 50 MB server limit → 50 MB
814
[InlineData(
InputType
.File, 5, 100, 5)] // File, 5 MB input max below 100 MB server → uses input
815
[InlineData(
InputType
.File, 200, 100, 100)] // File, 200 MB input max exceeds 100 MB server → capped
816
[InlineData(
InputType
.File, 50, -1, 50)] // File, 50 MB input max, no server limit → uses input
817
[InlineData(
InputType
.Text, 0, 100, 0)] // Non-file, server limit not applied → 0
819
InputType
inputType, int inputMaxFileSizeMB, int serverLimitMB, int expectedMB)
1078
var fileInput = new InteractionInput { Name = "File", InputType =
InputType
.File };
1079
var textInput = new InteractionInput { Name = "Text", InputType =
InputType
.Text };
1117
var input = new InteractionInput { Name = "File", InputType =
InputType
.File, Required = true, AllowMultipleFiles = true };
1181
var input = new InteractionInput { Name = "File", InputType =
InputType
.File };
InteractionServiceTests.cs (78)
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)]);
422
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
431
inputs: [new InputDto("Value", "not-in-options",
InputType
.Choice)]);
445
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
454
inputs: [new InputDto("Value", "not-in-options",
InputType
.Choice)]);
466
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Number };
475
inputs: [new InputDto("Value", "one",
InputType
.Number)]);
489
var input = new InteractionInput { Name = "Value", Label = "Value", InputType =
InputType
.Boolean };
498
inputs: [new InputDto("Value", "maybe",
InputType
.Number)]);
508
[InlineData(
InputType
.Text, null)]
509
[InlineData(
InputType
.Text, 1)]
510
[InlineData(
InputType
.Text, 10)]
511
[InlineData(
InputType
.Text, InteractionHelpers.DefaultMaxLength)]
512
[InlineData(
InputType
.SecretText, 10)]
513
public async Task PromptInputsAsync_TextExceedsLimit_ReturnErrors(
InputType
inputType, int? maxLength)
518
static async Task TextExceedsLimitCoreAsync(
InputType
inputType, int? maxLength, bool success)
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 },
644
new InteractionInput { Name = "Password", Label = "Password", InputType =
InputType
.SecretText },
645
new InteractionInput { Name = "RememberMe", Label = "Remember Me", InputType =
InputType
.Boolean }
683
new InteractionInput { Name = "UserName", Label = "User Name", InputType =
InputType
.Text },
684
new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType =
InputType
.Text },
685
new InteractionInput { Name = "Age", InputType =
InputType
.Number }
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 },
857
new InteractionInput { Name = "Password", Label = "Password", InputType =
InputType
.SecretText }
870
new InputDto("Username", "testuser",
InputType
.Text),
871
new InputDto("Password", "testpass",
InputType
.SecretText)
913
InputType =
InputType
.Choice,
963
new InteractionInput { Name = "Username", Label = "Username", InputType =
InputType
.Text },
967
InputType =
InputType
.Choice,
994
inputs: [new InputDto("Username", "testuser",
InputType
.Text)]).DefaultTimeout();
1018
new InteractionInput { Name = "Email", Label = "Email", InputType =
InputType
.Text, Required = true },
1019
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1052
new InputDto("Email", "test@example.com",
InputType
.Text),
1053
new InputDto("Age", "25",
InputType
.Number)
1074
InputType =
InputType
.Choice,
1086
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1107
InputType =
InputType
.Choice,
1119
new InteractionInput { Name = "Age", Label = "Age", InputType =
InputType
.Number, Required = true }
1352
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = true };
1362
inputs: [new InputDto("File", "file-content-here",
InputType
.File, Files: [new InputFileDto("file1", "test.txt", "/tmp/test.txt")])]);
1381
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File };
1406
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File };
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 };
1472
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = true };
1481
inputs: [new InputDto("File", string.Empty,
InputType
.File)]);
1495
var input = new InteractionInput { Name = "File", Label = "File", InputType =
InputType
.File, Required = false };
1504
inputs: [new InputDto("File", string.Empty,
InputType
.File)]);
1523
InputType =
InputType
.File,
1538
inputs: [new InputDto("File", "files",
InputType
.File, files)]);
1561
InputType =
InputType
.File,
1568
InputType =
InputType
.File,
1579
InputType =
InputType
.File,
1592
InputType =
InputType
.File
Orchestrator\ParameterProcessorTests.cs (12)
221
Assert.Equal(
InputType
.Text, input.InputType);
227
Assert.Equal(
InputType
.Text, input.InputType);
233
Assert.Equal(
InputType
.SecretText, input.InputType);
239
Assert.Equal(
InputType
.Boolean, input.InputType);
460
Assert.Equal(
InputType
.Text, param1Input.InputType);
466
Assert.Equal(
InputType
.Text, param2Input.InputType);
503
Assert.Equal(
InputType
.SecretText, secretInput.InputType);
539
Assert.Equal(
InputType
.Boolean, saveCheckbox.InputType);
578
Assert.Equal(
InputType
.Boolean, saveCheckbox.InputType);
1239
InputType =
InputType
.Text,
1245
InputType =
InputType
.Boolean,
1257
InputType =
InputType
.Boolean,
Publishing\PipelineActivityReporterTests.cs (2)
654
InputType =
InputType
.File,
695
InputType =
InputType
.File
ResourceCommandServiceTests.cs (33)
530
InputType =
InputType
.Text
535
InputType =
InputType
.Number
545
InputType =
InputType
.Text,
551
InputType =
InputType
.Number,
588
InputType =
InputType
.Text,
629
InputType =
InputType
.Text,
669
InputType =
InputType
.SecretText,
680
InputType =
InputType
.SecretText,
711
InputType =
InputType
.Text
716
InputType =
InputType
.Number,
722
InputType =
InputType
.Boolean,
756
InputType =
InputType
.Text
787
InputType =
InputType
.Text
818
InputType =
InputType
.Boolean,
850
InputType =
InputType
.Choice,
891
InputType =
InputType
.Boolean,
954
InputType =
InputType
.Text,
996
InputType =
InputType
.Choice,
1003
InputType =
InputType
.Choice,
1069
InputType =
InputType
.Choice,
1076
InputType =
InputType
.Choice,
1094
InputType =
InputType
.Choice,
1161
InputType =
InputType
.Choice,
1168
InputType =
InputType
.Choice,
1231
InputType =
InputType
.Text,
1283
InputType =
InputType
.Text,
1338
InputType =
InputType
.Boolean,
1345
InputType =
InputType
.Number,
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,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
50
InputType =
InputType
.Number,
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
50
InputType =
InputType
.Text,
58
InputType =
InputType
.Text,
66
InputType =
InputType
.Choice,
79
InputType =
InputType
.Choice,
101
InputType =
InputType
.File,
152
InputType =
InputType
.Text,
175
InputType =
InputType
.SecretText,
190
InputType =
InputType
.Choice,
211
InputType =
InputType
.Boolean,
225
InputType =
InputType
.Number,
240
InputType =
InputType
.Choice,
Stress.AppHost (82)
CommandResources.cs (52)
149
InputType =
InputType
.Text,
157
InputType =
InputType
.Number,
164
InputType =
InputType
.Boolean
207
InputType =
InputType
.Text,
217
InputType =
InputType
.Number,
225
InputType =
InputType
.Boolean,
233
InputType =
InputType
.Choice,
247
InputType =
InputType
.SecretText,
302
InputType =
InputType
.Text,
312
InputType =
InputType
.Choice,
326
InputType =
InputType
.Number,
334
InputType =
InputType
.Boolean,
350
.Where(i => i.InputType is
InputType
.Text or
InputType
.SecretText or
InputType
.Choice)
352
NumberCount = inputsWithValues.Count(i => i.InputType ==
InputType
.Number),
353
BooleanCount = inputsWithValues.Count(i => i.InputType ==
InputType
.Boolean),
393
InputType =
InputType
.Choice,
408
InputType =
InputType
.Choice,
451
InputType =
InputType
.Number,
460
InputType =
InputType
.Choice,
553
InputType =
InputType
.Choice,
581
InputType =
InputType
.Text,
655
InputType =
InputType
.Text,
664
InputType =
InputType
.Text,
710
InputType =
InputType
.Choice,
724
InputType =
InputType
.Number,
756
InputType =
InputType
.Choice,
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,
985
InputType =
InputType
.Boolean,
993
InputType =
InputType
.Number,
1002
InputType =
InputType
.Number,
1012
InputType =
InputType
.Boolean,
1020
InputType =
InputType
.Number,
1029
InputType =
InputType
.Boolean,
1037
InputType =
InputType
.Number,
1046
InputType =
InputType
.Boolean,
1054
InputType =
InputType
.Number,
1064
InputType =
InputType
.Boolean,
1072
InputType =
InputType
.Number,
1081
InputType =
InputType
.Number,
1311
InputType =
InputType
.Text,
1321
InputType =
InputType
.Number,
1330
InputType =
InputType
.Boolean,
1343
InputType =
InputType
.Text,
InteractionCommands.cs (30)
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 };
76
InputType =
InputType
.Choice,
87
InputType =
InputType
.Choice,
146
InputType =
InputType
.Choice,
159
InputType =
InputType
.Choice,
198
InputType =
InputType
.Choice,
226
InputType =
InputType
.Choice,
236
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType =
InputType
.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
239
new InteractionInput { Name = "Name", InputType =
InputType
.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
240
new InteractionInput { Name = "Password", InputType =
InputType
.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
244
new InteractionInput { Name = "RememberMe", InputType =
InputType
.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
284
InputType =
InputType
.Choice,
296
InputType =
InputType
.Choice,
344
InputType =
InputType
.Choice,
354
InputType =
InputType
.Choice,
365
InputType =
InputType
.Text,
423
InputType =
InputType
.Choice,
435
InputType =
InputType
.Choice,
453
InputType =
InputType
.Choice,
487
new InteractionInput { Name = "Receipt", InputType =
InputType
.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
514
if (updatedInput.InputType ==
InputType
.File && files.Count > 0)
573
InputType =
InputType
.Text,
606
InputType =
InputType
.Choice,
629
InputType =
InputType
.Choice,
668
InputType =
InputType
.Choice,
699
InputType =
InputType
.Choice,
993
InputType =
InputType
.File,
1038
InputType =
InputType
.File,