289 instantiations of InteractionInput
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
166
var input = new
InteractionInput
ApplicationModel\ResourceCommandService.cs (1)
800
return new
InteractionInput
Ats\InteractionExports.cs (2)
256
var result = new
InteractionInput
308
var input = new
InteractionInput
InteractionService.cs (1)
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);
Orchestrator\ParameterProcessor.cs (4)
233
var saveInput = new
InteractionInput
273
var deleteFromSecretsInput = new
InteractionInput
379
var deleteFromUserSecretsInput = new
InteractionInput
411
return new
InteractionInput
ParameterResourceBuilderExtensions.cs (1)
262
builder.Resource.Annotations.Add(new InputGeneratorAnnotation(parameter => new
InteractionInput
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
270
new
()
291
new
()
312
new
()
330
new
()
352
new
()
370
private static InteractionInput CreateChangeLocationDeleteConfirmationArgument() =>
new
()
673
new
InteractionInput
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
155
new
InteractionInput
181
new
InteractionInput
254
new
InteractionInput
280
new
InteractionInput
348
var resourceGroupInput = new
InteractionInput
446
new
InteractionInput
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
333
inputs.Add(new
InteractionInput
359
inputs.Add(new
InteractionInput
394
inputs.Add(new
InteractionInput
435
inputs.Add(new
InteractionInput
Aspire.Hosting.Azure.Tests (3)
AzureDeployerTests.cs (1)
868
.WithCustomInput(p => new
InteractionInput
AzureEnvironmentResourceExtensionsTests.cs (2)
4994
return new InteractionInputCollection([.. values.Select(static value => new
InteractionInput
5004
return new InteractionInputCollection([.. inputs.Select(static input => new
InteractionInput
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
44
var scopeInput = new
InteractionInput
58
var browserInput = new
InteractionInput
79
var userDataModeInput = new
InteractionInput
102
var profileInput = new
InteractionInput
123
var saveInput = new
InteractionInput
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)
44
var scopeInput = new
InteractionInput
58
var browserInput = new
InteractionInput
79
var userDataModeInput = new
InteractionInput
102
var profileInput = new
InteractionInput
123
var saveInput = new
InteractionInput
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
839
new
InteractionInput
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
328
new
InteractionInput
PromptAgent\PromptAgentBuilderExtensions.cs (1)
118
new
InteractionInput
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
111
new
InteractionInput
176
new
InteractionInput
PromptAgentTests.cs (1)
105
new
InteractionInput
Aspire.Hosting.Tests (141)
AddParameterTests.cs (5)
403
.WithCustomInput(p => new
InteractionInput
496
.WithCustomInput(p => new
InteractionInput
523
.WithCustomInput(_ => new
InteractionInput
550
.WithCustomInput(_ => new
InteractionInput
591
.WithCustomInput(p => new
InteractionInput
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
212
new
InteractionInput
2265
new
InteractionInput
2270
new
InteractionInput
2275
new
InteractionInput
2330
new
InteractionInput
2381
new
InteractionInput
2386
new
InteractionInput
2391
new
InteractionInput
2438
new
InteractionInput
2448
new
InteractionInput
2512
new
InteractionInput
2522
new
InteractionInput
2587
new
InteractionInput
2635
new
InteractionInput
Dashboard\DashboardServiceTests.cs (13)
175
new
InteractionInput
302
new
InteractionInput
307
new
InteractionInput
365
new
InteractionInput
422
new
InteractionInput
569
new
InteractionInput
{ Name = "Input", InputType = InputType.Text });
731
new
InteractionInput
{ Name = "Input", InputType = InputType.Text, Label = "Input" });
941
? new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
942
: new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType };
1197
var fileInput = new
InteractionInput
{ Name = "File", InputType = InputType.File };
1198
var textInput = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1236
var input = new
InteractionInput
{ Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1300
var input = new
InteractionInput
{ Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (54)
362
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Text, };
399
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Text, Required = true };
422
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
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!")] };
466
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Number };
489
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Boolean };
522
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
554
var input = new
InteractionInput
574
var input = new
InteractionInput
592
var input = new
InteractionInput
627
var input = new
InteractionInput
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 }
910
new
InteractionInput
963
new
InteractionInput
{ Name = "Username", Label = "Username", InputType = InputType.Text },
964
new
InteractionInput
1018
new
InteractionInput
{ Name = "Email", Label = "Email", InputType = InputType.Text, Required = true },
1019
new
InteractionInput
{ Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
1070
new
InteractionInput
1086
new
InteractionInput
{ Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
1103
new
InteractionInput
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 };
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 };
1449
var input = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1472
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File, Required = true };
1495
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File, Required = false };
1519
var input = new
InteractionInput
1558
Assert.Throws<ArgumentOutOfRangeException>(() => new
InteractionInput
1565
Assert.Throws<ArgumentOutOfRangeException>(() => new
InteractionInput
1576
var input = new
InteractionInput
1589
var input = new
InteractionInput
Orchestrator\ParameterProcessorTests.cs (3)
1234
new
InteractionInput
1240
new
InteractionInput
1252
new
InteractionInput
Publishing\PipelineActivityReporterTests.cs (2)
649
var input = new
InteractionInput
690
var input = new
InteractionInput
ResourceCommandServiceTests.cs (35)
528
new
InteractionInput
533
new
InteractionInput
543
new
InteractionInput
549
new
InteractionInput
586
new
InteractionInput
627
new
InteractionInput
667
new
InteractionInput
678
new
InteractionInput
709
new
InteractionInput
714
new
InteractionInput
720
new
InteractionInput
754
new
InteractionInput
785
new
InteractionInput
816
new
InteractionInput
848
new
InteractionInput
889
new
InteractionInput
951
new
InteractionInput
994
new
InteractionInput
1001
new
InteractionInput
1067
new
InteractionInput
1074
new
InteractionInput
1092
new
InteractionInput
1159
new
InteractionInput
1166
new
InteractionInput
1229
new
InteractionInput
1280
new
InteractionInput
1330
var textDefinition = new
InteractionInput
1335
var messageDefinition = new
InteractionInput
1438
new
InteractionInput
1445
new
InteractionInput
1509
new
InteractionInput
1621
new
InteractionInput
1627
new
InteractionInput
1638
new
InteractionInput
1677
new
InteractionInput
Terminals\InteractionServiceTerminalTests.cs (1)
118
var input = new
InteractionInput
{ Name = "text", InputType = InputType.Text, Required = true, Value = "value" };
WithHttpCommandTests.cs (5)
269
new
InteractionInput
362
new
InteractionInput
379
new
InteractionInput
751
new
InteractionInput
780
new
InteractionInput
WithProcessCommandTests.cs (9)
63
new
InteractionInput
168
new
InteractionInput
182
new
InteractionInput
240
new
InteractionInput
261
new
InteractionInput
363
new
InteractionInput
376
new
InteractionInput
420
new
InteractionInput
1430
new
InteractionInput
ExternalServices.AppHost (1)
AppHost.cs (1)
10
.WithCustomInput(p =>
new
()
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
47
.WithCustomInput(p =>
new
()
Publishers.AppHost (11)
DistributedApplicationBuilderExtensions.cs (11)
44
new
InteractionInput
52
new
InteractionInput
60
new
InteractionInput
73
new
InteractionInput
95
new
InteractionInput
146
new
InteractionInput
169
new
InteractionInput
184
new
InteractionInput
205
new
InteractionInput
219
new
InteractionInput
234
new
InteractionInput
Stress.AppHost (83)
CommandResources.cs (47)
145
new
InteractionInput
153
new
InteractionInput
160
new
InteractionInput
202
new
InteractionInput
212
new
InteractionInput
220
new
InteractionInput
228
new
InteractionInput
242
new
InteractionInput
297
new
InteractionInput
307
new
InteractionInput
321
new
InteractionInput
329
new
InteractionInput
388
new
InteractionInput
403
new
InteractionInput
446
new
InteractionInput
455
new
InteractionInput
548
new
InteractionInput
576
new
InteractionInput
650
new
InteractionInput
659
new
InteractionInput
705
new
InteractionInput
719
new
InteractionInput
751
new
InteractionInput
785
new
InteractionInput
794
new
InteractionInput
823
new
InteractionInput
832
new
InteractionInput
841
new
InteractionInput
870
new
InteractionInput
880
new
InteractionInput
890
new
InteractionInput
1057
new
InteractionInput
1066
new
InteractionInput
1075
new
InteractionInput
1084
new
InteractionInput
1093
new
InteractionInput
1102
new
InteractionInput
1110
new
InteractionInput
1119
new
InteractionInput
1127
new
InteractionInput
1136
new
InteractionInput
1145
new
InteractionInput
1154
new
InteractionInput
1383
new
()
1393
new
()
1402
new
()
1415
inputs.Add(
new
()
InteractionCommands.cs (36)
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 };
73
var choiceWithLongContent = new
InteractionInput
84
var choiceCustomOptionsWithLongContent = new
InteractionInput
143
var dinnerInput = new
InteractionInput
156
var requirementsInput = new
InteractionInput
195
var dinnerInput = new
InteractionInput
223
var requirementsInput = new
InteractionInput
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", Description = "The name for the dinner reservation. Maximum 50 characters.", Placeholder = "Enter name", Required = true, MaxLength = 50 },
240
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 },
244
new
InteractionInput
{ Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
283
new
InteractionInput
292
new
InteractionInput
301
new
InteractionInput
312
new
InteractionInput
323
new
InteractionInput
332
new
InteractionInput
341
new
InteractionInput
362
var predefinedOptionsInput = new
InteractionInput
374
var customChoiceInput = new
InteractionInput
422
var dynamicInput = new
InteractionInput
432
var dynamicCustomChoiceInput = new
InteractionInput
443
var dynamicTextInput = new
InteractionInput
501
var predefinedOptionsInput = new
InteractionInput
513
var customChoiceInput = new
InteractionInput
531
var dynamicInput = new
InteractionInput
568
new
InteractionInput
{ Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
651
inputs.Add(new
InteractionInput
684
var tenantInput = new
InteractionInput
707
var subscriptionInput = new
InteractionInput
746
var resourceGroupInput = new
InteractionInput
777
var locationInput = new
InteractionInput
1071
var fileInput = new
InteractionInput
1116
var fileInput = new
InteractionInput
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
297
new
InteractionInput
368 references to InteractionInput
Aspire.Hosting (108)
ApplicationModel\CommandOptions.cs (3)
13
private IReadOnlyList<
InteractionInput
> _arguments = [];
37
/// <see cref="
InteractionInput
.Name"/>.
40
public IReadOnlyList<
InteractionInput
> Arguments
ApplicationModel\CustomResourceSnapshot.cs (1)
471
public IReadOnlyList<
InteractionInput
> Arguments { get; init; } = [];
ApplicationModel\HttpCommandContext.cs (2)
55
/// named-payload clients are mapped by <see cref="
InteractionInput
.Name"/>.
142
/// named-payload clients are mapped by <see cref="
InteractionInput
.Name"/>.
ApplicationModel\InputGeneratorAnnotation.cs (2)
10
public class InputGeneratorAnnotation(Func<ParameterResource,
InteractionInput
> inputGenerator) : IResourceAnnotation
15
public Func<ParameterResource,
InteractionInput
> InputGenerator => inputGenerator;
ApplicationModel\ParameterResource.cs (3)
143
internal
InteractionInput
CreateInput(string? name = null, bool? required = null, InputLoadOptions? dynamicLoading = null)
147
var
generatedInput = annotation.InputGenerator(this);
166
var
input = new InteractionInput
ApplicationModel\ProcessCommandResultContext.cs (1)
54
/// named-payload clients are mapped by <see cref="
InteractionInput
.Name"/>.
ApplicationModel\ResourceCommandAnnotation.cs (5)
43
IReadOnlyList<
InteractionInput
>? arguments,
61
IReadOnlyList<
InteractionInput
>? arguments,
135
/// <see cref="
InteractionInput
.Name"/>.
138
public IReadOnlyList<
InteractionInput
> Arguments { get; }
483
/// named-payload clients are mapped by <see cref="
InteractionInput
.Name"/>.
ApplicationModel\ResourceCommandService.cs (16)
563
private static bool IsStaticallyDisabled(
InteractionInput
argument)
574
foreach (
var
argument in arguments)
586
foreach (
var
argument in arguments)
662
foreach (
var
argument in arguments)
689
if (!arguments.TryGetByName(dependency, out
var
input) || string.IsNullOrEmpty(input.Value))
728
private static InteractionInputCollection CreateArguments(IReadOnlyList<
InteractionInput
> commandArguments, IReadOnlyDictionary<string, string?>? argumentValues)
735
var inputs = new
InteractionInput
[commandArguments.Count];
738
var
input = commandArguments[i];
751
private static InteractionInputCollection CreateArguments(IReadOnlyList<
InteractionInput
> commandArguments, IReadOnlyList<string?>? orderedArgumentValues)
758
var inputs = new
InteractionInput
[commandArguments.Count];
761
var
input = commandArguments[i];
790
foreach (
var
argument in arguments)
798
private static
InteractionInput
CloneInput(
InteractionInput
input, string? value)
820
var inputs = new
InteractionInput
[arguments.Count];
823
var
input = arguments[i];
Ats\InteractionExports.cs (12)
157
var interactionInputs = new
InteractionInput
[inputs.Length];
254
internal static
InteractionInput
ToResultInput(
InteractionInput
input)
256
var
result = new InteractionInput
287
/// An opaque, server-side builder for an <see cref="
InteractionInput
"/> used by polyglot app hosts.
290
/// The builder owns the live <see cref="
InteractionInput
"/> instance. Dynamic-loading callbacks mutate this same
297
private InteractionInputBuilder(
InteractionInput
input)
302
internal
InteractionInput
Input { get; }
308
var
input = new InteractionInput
443
/// The handle owns the live <see cref="
InteractionInput
"/> for the duration of the load callback. Setters are routed
838
public
InteractionInput
? Input { get; init; }
840
internal static InputInteractionResult From(InteractionResult<
InteractionInput
> result)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1388
private static ResourceSnapshotCommandArgument CreateCommandArgument(
InteractionInput
input)
Dashboard\DashboardService.cs (1)
217
internal static Aspire.DashboardService.Proto.V1.InteractionInput CreateInteractionInputDto(Aspire.Hosting.
InteractionInput
input, IReadOnlyList<string>? updateStateOnChangeInputs = null, long? maxFileUploadSize = null)
Dashboard\DashboardServiceData.cs (5)
261
foreach (
var
input in inputsInfo.Inputs)
309
var choiceInteractionsToUpdate = new HashSet<
InteractionInput
>();
314
if (!inputsInfo.Inputs.TryGetByName(requestInput.Name, out
var
modelInput))
368
foreach (
var
dependentInput in dependentInputs)
377
foreach (
var
inputToUpdate in choiceInteractionsToUpdate)
IInteractionService.cs (25)
61
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
64
/// Prompts the user for a single input using a specified <see cref="
InteractionInput
"/>.
74
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
81
/// <param name="inputs">A collection of <see cref="
InteractionInput
"/> to prompt for.</param>
87
Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
194
InteractionInput
Input,
209
public Action<
InteractionInput
>? OnLoadComplete { get; init; }
323
public required
InteractionInput
Input { get; init; }
326
/// Gets the collection of all <see cref="
InteractionInput
"/> in this prompt.
669
public sealed class InteractionInputCollection : IReadOnlyList<
InteractionInput
>
671
private readonly List<
InteractionInput
> _inputs;
672
private readonly Dictionary<string,
InteractionInput
> _inputsByName;
678
public InteractionInputCollection(IReadOnlyList<
InteractionInput
> inputs)
680
var inputsByName = new Dictionary<string,
InteractionInput
>(StringComparers.InteractionInputName);
684
foreach (
var
input in inputs)
703
public
InteractionInput
this[string name]
707
if (_inputsByName.TryGetValue(name, out
var
input))
720
public
InteractionInput
this[int index] => _inputs[index];
733
public bool TryGetByName(string name, [NotNullWhen(true)] out
InteractionInput
? input)
805
public
InteractionInput
[] ToArray()
819
public IEnumerator<
InteractionInput
> GetEnumerator() => _inputs.GetEnumerator();
827
internal int IndexOf(
InteractionInput
input) => _inputs.IndexOf(input);
842
/// Specifies the type of input for an <see cref="
InteractionInput
"/>.
914
public void AddValidationError(
InteractionInput
input, string errorMessage)
InteractionService.cs (15)
142
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
147
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
152
return InteractionResult.Cancel<
InteractionInput
>();
158
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
171
var
input = inputs[i];
180
if (!inputCollection.TryGetByName(dependsOnInputName, out
var
dependsOnInput))
182
throw new InvalidOperationException($"The input '{input.Name}' has {nameof(
InteractionInput
.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but no such input exists.");
186
throw new InvalidOperationException($"The input '{input.Name}' has {nameof(
InteractionInput
.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but that input is not defined before it. Inputs must be defined in order so that dependencies are always to earlier inputs.");
212
foreach (
var
input in inputs)
254
if (completion.State is not IReadOnlyList<
InteractionInput
> inputState)
563
if (completion.State is IReadOnlyList<
InteractionInput
>)
590
if (result.State is IReadOnlyList<
InteractionInput
> inputs)
592
foreach (
var
input in inputs)
604
foreach (
var
input in inputs)
Orchestrator\ParameterProcessor.cs (12)
203
var
valueInput = parameterResource.CreateInput(
233
var
saveInput = new InteractionInput
273
var
deleteFromSecretsInput = new InteractionInput
331
var
input = parameterResource.CreateInput(SetParameterValueName);
348
var
saveParameterInput = CreateSaveParameterInput(hasSavedState);
379
var
deleteFromUserSecretsInput = new InteractionInput
387
var inputs = hasSavedState ? [deleteFromUserSecretsInput] : Array.Empty<
InteractionInput
>();
409
private
InteractionInput
CreateSaveParameterInput(bool hasExistingValue)
447
var deleteFromUserSecrets = arguments.TryGetByName(DeleteFromUserSecretsName, out
var
deleteFromUserSecretsInput) &&
589
var resourceInputs = new List<(ParameterResource ParameterResource,
InteractionInput
Input)>();
594
var
input = parameter.CreateInput();
599
InteractionInput
? saveParameters = null;
ParameterResourceBuilderExtensions.cs (1)
240
public static IResourceBuilder<ParameterResource> WithCustomInput(this IResourceBuilder<ParameterResource> builder, Func<ParameterResource,
InteractionInput
> createInput)
Pipelines\PipelineActivityReporter.cs (2)
422
InteractionInput
? matchingInput;
486
private InputDto CreateInputDto(int interactionId,
InteractionInput
matchingInput, PublishingPromptInputAnswer responseAnswer)
ResourceBuilderExtensions.cs (1)
3375
private static void ValidateCommandArguments(IReadOnlyList<
InteractionInput
> arguments)
Aspire.Hosting.Azure (24)
AzureProvisioningController.cs (13)
268
private static IReadOnlyList<
InteractionInput
> CreateAzureContextCommandArguments() =>
350
internal static IReadOnlyList<
InteractionInput
> CreateChangeLocationCommandArguments(string? deploymentStateResourceName) =>
370
private static
InteractionInput
CreateChangeLocationDeleteConfirmationArgument() => new()
413
var tenantId = context.AllInputs.TryGetByName(TenantIdArgumentName, out
var
tenantInput) && !string.IsNullOrWhiteSpace(tenantInput.Value)
446
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
475
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
478
var resourceGroupName = context.AllInputs.TryGetByName(ResourceGroupArgumentName, out
var
resourceGroupInput) && !string.IsNullOrWhiteSpace(resourceGroupInput.Value)
527
var
resourceGroupInput = validationContext.Inputs[ResourceGroupArgumentName];
538
var
input = validationContext.Inputs[inputName];
884
TenantId: arguments.TryGetByName(TenantIdArgumentName, out
var
tenantInput) ? tenantInput.Value : null);
914
=> arguments.TryGetByName(ConfirmDeleteArgumentName, out
var
input) &&
4345
IReadOnlyList<
InteractionInput
>? Arguments = null,
4358
IReadOnlyList<
InteractionInput
>? Arguments = null,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
195
var
tenantInput = validationContext.Inputs[TenantName];
294
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
348
var
resourceGroupInput = new InteractionInput
370
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
Provisioning\Internal\RunModeProvisioningContextProvider.cs (7)
289
if (validationContext.Inputs.TryGetByName(TenantName, out
var
tenantInput))
297
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
303
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
326
private List<
InteractionInput
> CreateProvisioningInputs(bool forcePrompt, CancellationToken cancellationToken)
328
var inputs = new List<
InteractionInput
>();
375
var tenantId = includeTenantInput && context.AllInputs.TryGetByName(TenantName, out
var
tenantInput)
479
if (inputs.TryGetByName(TenantName, out
var
tenantInput))
Aspire.Hosting.Azure.Tests (28)
AzureDeployerTests.cs (3)
1917
var
apiKeyInput = parameterInputs.Inputs["api-key"];
1918
var
dbInput = parameterInputs.Inputs["mydb"];
1919
var
customInput = parameterInputs.Inputs["custom-setting"];
AzureEnvironmentResourceExtensionsTests.cs (14)
185
var
tenantInput = inputs["tenantId"];
194
var
subscriptionInput = inputs["subscriptionId"];
204
var
resourceGroupInput = inputs["resourceGroup"];
213
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
242
var
tenantInput = inputs["tenantId"];
249
var
subscriptionInput = inputs["subscriptionId"];
260
var
resourceGroupInput = inputs["resourceGroup"];
285
var
subscriptionInput = inputs["subscriptionId"];
287
var
resourceGroupInput = inputs["resourceGroup"];
289
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
2948
var
commandLocationInput = commandInputs[AzureBicepResource.KnownParameters.Location];
2964
var
locationInput = interaction.Inputs[AzureBicepResource.KnownParameters.Location];
5002
private static InteractionInputCollection CloneInputs(IReadOnlyList<
InteractionInput
> inputs)
5022
private static Task LoadInputAsync(IServiceProvider services, InteractionInputCollection inputs,
InteractionInput
input)
ProvisioningContextProviderTests.cs (6)
641
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
649
var
resourceGroupInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.ResourceGroupName];
687
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
733
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
788
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
831
var
resourceGroupInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.ResourceGroupName];
tests\Shared\TestInteractionService.cs (5)
38
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
43
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
47
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
51
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Browsers (10)
BrowserLogsConfigurationManager.cs (10)
36
internal static IReadOnlyList<
InteractionInput
> CreateArgumentDefinitions(BrowserLogsResource resource, bool userSecretsAvailable)
44
var
scopeInput = new InteractionInput
58
var
browserInput = new InteractionInput
79
var
userDataModeInput = new InteractionInput
102
var
profileInput = new InteractionInput
123
var
saveInput = new InteractionInput
273
var
browser = inputs[BrowserInputName];
281
var
userDataMode = inputs[UserDataModeInputName];
288
var
profile = inputs[ProfileInputName];
297
var
saveToUserSecrets = inputs[SaveToUserSecretsInputName];
Aspire.Hosting.Browsers.Tests (20)
BrowserLogsBuilderExtensionsTests.cs (5)
101
var
browserInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.BrowserInputName);
102
var
userDataModeInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.UserDataModeInputName);
103
var
profileInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.ProfileInputName);
156
var
profileInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.ProfileInputName);
192
var
saveInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.SaveToUserSecretsInputName);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (10)
36
internal static IReadOnlyList<
InteractionInput
> CreateArgumentDefinitions(BrowserLogsResource resource, bool userSecretsAvailable)
44
var
scopeInput = new InteractionInput
58
var
browserInput = new InteractionInput
79
var
userDataModeInput = new InteractionInput
102
var
profileInput = new InteractionInput
123
var
saveInput = new InteractionInput
273
var
browser = inputs[BrowserInputName];
281
var
userDataMode = inputs[UserDataModeInputName];
288
var
profile = inputs[ProfileInputName];
297
var
saveToUserSecrets = inputs[SaveToUserSecretsInputName];
tests\Shared\TestInteractionService.cs (5)
38
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
43
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
47
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
51
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (5)
tests\Shared\TestInteractionService.cs (5)
38
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
43
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
47
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
51
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationCommandsTests.cs (1)
70
var
nameArgument = Assert.Single(addCommand.Arguments);
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
340
var
message = ctx.Inputs["message"];
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
88
var
argument = Assert.Single(command.Arguments);
Aspire.Hosting.RemoteHost.Tests (6)
AtsExportsTests.cs (1)
169
var
input = InteractionExports.CreateFileInput(interactionService, "artifact", new CreateInteractionInputOptions
tests\Shared\TestInteractionService.cs (5)
38
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
43
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
47
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
51
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (114)
AddParameterTests.cs (23)
426
var
input = parameter.Resource.CreateInput();
445
var
input = parameter.Resource.CreateInput("value");
465
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
479
var
input = parameter.Resource.CreateInput();
507
var
input = parameter.Resource.CreateInput();
534
var
input = parameter.Resource.CreateInput("value");
562
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
576
var
input = parameter.Resource.CreateInput();
603
var
input = parameter.Resource.CreateInput();
620
[nameof(
InteractionInput
.InputType)] = InputType.Number,
621
[nameof(
InteractionInput
.Label)] = "Worker Count",
622
[nameof(
InteractionInput
.Placeholder)] = "Enter number (1-10)",
623
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>
628
[nameof(
InteractionInput
.Value)] = "2",
629
[nameof(
InteractionInput
.MaxLength)] = 2
634
var
input = parameter.Resource.CreateInput("value", required: true);
665
var
input = parameter.Resource.CreateInput();
681
[nameof(
InteractionInput
.Label)] = "",
682
[nameof(
InteractionInput
.Description)] = "",
683
[nameof(
InteractionInput
.Placeholder)] = "",
684
[nameof(
InteractionInput
.Value)] = "",
685
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>()
688
var
input = parameter.Resource.CreateInput();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
2643
var
target = context.Inputs.Single(argument => argument.Name == "target");
Dashboard\DashboardServiceTests.cs (8)
430
var
target = context.Inputs.Single(argument => argument.Name == "target");
940
var
input = inputMaxFileSizeMB > 0
1197
var
fileInput = new InteractionInput { Name = "File", InputType = InputType.File };
1198
var
textInput = new InteractionInput { Name = "Text", InputType = InputType.Text };
1236
var
input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1258
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
1300
var
input = new InteractionInput { Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (41)
362
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, };
399
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true };
422
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
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!")] };
466
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number };
489
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean };
522
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
554
var
input = new InteractionInput
574
var
input = new InteractionInput
592
var
input = new InteractionInput
627
var
input = new InteractionInput
641
var inputs = new List<
InteractionInput
>
663
Assert.True(collection.TryGetByName("Username", out
var
usernameInput));
666
Assert.False(collection.TryGetByName("NonExistent", out
var
nonExistentInput));
681
var inputs = new List<
InteractionInput
>
715
var inputs = new List<
InteractionInput
>
738
var inputs = new List<
InteractionInput
>
753
var inputs = new List<
InteractionInput
>
768
var inputs = new List<
InteractionInput
>
801
var inputs = new List<
InteractionInput
>
838
var inputs = new List<
InteractionInput
>
854
var inputs = new List<
InteractionInput
>
908
var inputs = new List<
InteractionInput
>
961
var inputs = new List<
InteractionInput
>
1016
var inputs = new List<
InteractionInput
>
1033
var
emailInput = context.Inputs["Email"];
1034
var
ageInput = context.Inputs["Age"];
1068
var inputs = new List<
InteractionInput
>
1101
var inputs = new List<
InteractionInput
>
1352
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true };
1370
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
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 };
1449
var
input = new InteractionInput { Name = "Text", InputType = InputType.Text };
1472
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true };
1495
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false };
1519
var
input = new InteractionInput
1576
var
input = new InteractionInput
1589
var
input = new InteractionInput
Orchestrator\ParameterProcessorTests.cs (14)
454
var
param1Input = inputsInteraction.Inputs["param1"];
460
var
param2Input = inputsInteraction.Inputs["param2"];
497
var
secretInput = inputsInteraction.Inputs["secretParam"];
532
var
paramInput = inputsInteraction.Inputs["param1"];
535
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
571
var
paramInput = inputsInteraction.Inputs["param1"];
574
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
908
var
saveToUserSecretsInput = setValueCommand.Arguments.Single(argument => argument.Name == ParameterProcessor.SaveToUserSecretsName);
927
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
952
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
986
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
987
var
saveInput = arguments[ParameterProcessor.SaveToUserSecretsName];
1024
var
deleteInput = arguments[ParameterProcessor.DeleteFromUserSecretsName];
1056
var
deleteInput = arguments[ParameterProcessor.DeleteFromUserSecretsName];
Publishing\PipelineActivityReporterTests.cs (2)
649
var
input = new InteractionInput
690
var
input = new InteractionInput
ResourceCommandServiceTests.cs (13)
970
var
invalidArgument = Assert.Single(result.InvalidArguments);
1044
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1134
var
itemArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "item");
1137
var
priorityArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "priority");
1302
var
input = Assert.Single(interaction.Inputs);
1330
var
textDefinition = new InteractionInput
1335
var
messageDefinition = new InteractionInput
1358
InteractionInput
? previousInput = null;
1372
var
input = inputs["text"];
1532
var
invalidArgument = Assert.Single(result.InvalidArguments);
1654
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1687
var
target = context.Inputs.Single(argument => argument.Name == "target");
1702
var
invalidArgument = Assert.Single(result.InvalidArguments);
ResourceNotificationTests.cs (2)
1773
var commandArguments = Array.Empty<
InteractionInput
>();
2125
private static ResourceCommandSnapshot CreateTestCommand(IReadOnlyList<
InteractionInput
> arguments)
Terminals\InteractionServiceTerminalTests.cs (1)
118
var
input = new InteractionInput { Name = "text", InputType = InputType.Text, Required = true, Value = "value" };
tests\Shared\TestInteractionService.cs (5)
38
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
43
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
47
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
51
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
WithHttpCommandTests.cs (1)
280
var
argument = Assert.Single(command.Arguments);
WithProcessCommandTests.cs (3)
80
var
argument = Assert.Single(command.Arguments);
253
var
argument = Assert.Single(command.Arguments);
1449
var
invalidArgument = Assert.Single(result.InvalidArguments);
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
85
var
dependsOnInput = c.AllInputs["SSLCertificateType"];
107
var
appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name");
113
var
versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (47)
CommandResources.cs (2)
1379
private static IReadOnlyList<
InteractionInput
> CreateArgumentStressInputs(int fieldCount)
1381
var inputs = new List<
InteractionInput
>
InteractionCommands.cs (45)
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 };
73
var
choiceWithLongContent = new InteractionInput
84
var
choiceCustomOptionsWithLongContent = new InteractionInput
117
var
input = context.Inputs[0];
135
var
input = result.Data;
143
var
dinnerInput = new InteractionInput
156
var
requirementsInput = new InteractionInput
185
foreach (
var
updatedInput in result.Data)
195
var
dinnerInput = new InteractionInput
223
var
requirementsInput = new InteractionInput
236
var
numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
237
var inputs = new List<
InteractionInput
>
271
foreach (
var
updatedInput in result.Data)
281
var inputs = new List<
InteractionInput
>
362
var
predefinedOptionsInput = new InteractionInput
374
var
customChoiceInput = new InteractionInput
401
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
422
var
dynamicInput = new InteractionInput
432
var
dynamicCustomChoiceInput = new InteractionInput
443
var
dynamicTextInput = new InteractionInput
456
var
dependsOnInput = context.AllInputs["Dynamic"];
462
var inputs = new List<
InteractionInput
>
491
foreach (
var
updatedInput in result.Data)
501
var
predefinedOptionsInput = new InteractionInput
513
var
customChoiceInput = new InteractionInput
531
var
dynamicInput = new InteractionInput
544
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
563
var inputs = new List<
InteractionInput
>
591
foreach (
var
updatedInput in result.Data)
648
var inputs = new List<
InteractionInput
>();
673
foreach (
var
input in result.Data)
684
var
tenantInput = new InteractionInput
707
var
subscriptionInput = new InteractionInput
746
var
resourceGroupInput = new InteractionInput
777
var
locationInput = new InteractionInput
828
var inputs = new List<
InteractionInput
> { tenantInput, subscriptionInput, resourceGroupInput, locationInput };
839
var
tenant = validationContext.Inputs["Tenant"];
845
var
subscription = validationContext.Inputs["SubscriptionId"];
864
foreach (
var
input in result.Data)
1071
var
fileInput = new InteractionInput
1092
var
input = result.Data;
1116
var
fileInput = new InteractionInput
1139
var
input = result.Data;