278 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)
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);
Orchestrator\ParameterProcessor.cs (4)
236
var saveInput = new
InteractionInput
276
var deleteFromSecretsInput = new
InteractionInput
382
var deleteFromUserSecretsInput = new
InteractionInput
414
return new
InteractionInput
ParameterResourceBuilderExtensions.cs (1)
264
builder.Resource.Annotations.Add(new InputGeneratorAnnotation(parameter => new
InteractionInput
Aspire.Hosting.Azure (17)
AzureProvisioningController.cs (7)
273
new
()
294
new
()
315
new
()
333
new
()
355
new
()
373
private static InteractionInput CreateChangeLocationDeleteConfirmationArgument() =>
new
()
676
new
InteractionInput
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
158
new
InteractionInput
184
new
InteractionInput
257
new
InteractionInput
283
new
InteractionInput
351
var resourceGroupInput = new
InteractionInput
449
new
InteractionInput
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
335
inputs.Add(new
InteractionInput
361
inputs.Add(new
InteractionInput
396
inputs.Add(new
InteractionInput
437
inputs.Add(new
InteractionInput
Aspire.Hosting.Azure.Tests (3)
AzureDeployerTests.cs (1)
809
.WithCustomInput(p => new
InteractionInput
AzureEnvironmentResourceExtensionsTests.cs (2)
4985
return new InteractionInputCollection([.. values.Select(static value => new
InteractionInput
4995
return new InteractionInputCollection([.. inputs.Select(static input => new
InteractionInput
Aspire.Hosting.Browsers (5)
BrowserLogsConfigurationManager.cs (5)
45
var scopeInput = new
InteractionInput
59
var browserInput = new
InteractionInput
80
var userDataModeInput = new
InteractionInput
103
var profileInput = new
InteractionInput
124
var saveInput = new
InteractionInput
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)
45
var scopeInput = new
InteractionInput
59
var browserInput = new
InteractionInput
80
var userDataModeInput = new
InteractionInput
103
var profileInput = new
InteractionInput
124
var saveInput = new
InteractionInput
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
753
new
InteractionInput
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
326
new
InteractionInput
PromptAgent\PromptAgentBuilderExtensions.cs (1)
118
new
InteractionInput
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
110
new
InteractionInput
175
new
InteractionInput
PromptAgentTests.cs (1)
107
new
InteractionInput
Aspire.Hosting.Tests (138)
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)
170
new
InteractionInput
297
new
InteractionInput
302
new
InteractionInput
360
new
InteractionInput
417
new
InteractionInput
564
new
InteractionInput
{ Name = "Input", InputType = InputType.Text });
612
new
InteractionInput
{ Name = "Input", InputType = InputType.Text, Label = "Input" });
822
? new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
823
: new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType };
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 (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)
1236
new
InteractionInput
1242
new
InteractionInput
1254
new
InteractionInput
Publishing\PipelineActivityReporterTests.cs (2)
651
var input = new
InteractionInput
692
var input = new
InteractionInput
ResourceCommandServiceTests.cs (33)
527
new
InteractionInput
532
new
InteractionInput
542
new
InteractionInput
548
new
InteractionInput
585
new
InteractionInput
626
new
InteractionInput
666
new
InteractionInput
677
new
InteractionInput
708
new
InteractionInput
713
new
InteractionInput
719
new
InteractionInput
753
new
InteractionInput
784
new
InteractionInput
815
new
InteractionInput
847
new
InteractionInput
888
new
InteractionInput
950
new
InteractionInput
993
new
InteractionInput
1000
new
InteractionInput
1066
new
InteractionInput
1073
new
InteractionInput
1091
new
InteractionInput
1158
new
InteractionInput
1165
new
InteractionInput
1228
new
InteractionInput
1279
new
InteractionInput
1335
new
InteractionInput
1342
new
InteractionInput
1406
new
InteractionInput
1518
new
InteractionInput
1524
new
InteractionInput
1535
new
InteractionInput
1574
new
InteractionInput
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)
46
new
InteractionInput
54
new
InteractionInput
62
new
InteractionInput
75
new
InteractionInput
97
new
InteractionInput
148
new
InteractionInput
171
new
InteractionInput
186
new
InteractionInput
207
new
InteractionInput
221
new
InteractionInput
236
new
InteractionInput
Stress.AppHost (76)
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
980
new
InteractionInput
989
new
InteractionInput
998
new
InteractionInput
1007
new
InteractionInput
1016
new
InteractionInput
1025
new
InteractionInput
1033
new
InteractionInput
1042
new
InteractionInput
1050
new
InteractionInput
1059
new
InteractionInput
1068
new
InteractionInput
1077
new
InteractionInput
1306
new
()
1316
new
()
1325
new
()
1338
inputs.Add(
new
()
InteractionCommands.cs (29)
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", 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 },
281
var predefinedOptionsInput = new
InteractionInput
293
var customChoiceInput = new
InteractionInput
341
var dynamicInput = new
InteractionInput
351
var dynamicCustomChoiceInput = new
InteractionInput
362
var dynamicTextInput = new
InteractionInput
420
var predefinedOptionsInput = new
InteractionInput
432
var customChoiceInput = new
InteractionInput
450
var dynamicInput = new
InteractionInput
487
new
InteractionInput
{ Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
570
inputs.Add(new
InteractionInput
603
var tenantInput = new
InteractionInput
626
var subscriptionInput = new
InteractionInput
665
var resourceGroupInput = new
InteractionInput
696
var locationInput = new
InteractionInput
990
var fileInput = new
InteractionInput
1035
var fileInput = new
InteractionInput
362 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)
1366
private static ResourceSnapshotCommandArgument CreateCommandArgument(
InteractionInput
input)
Dashboard\DashboardService.cs (1)
194
internal static Aspire.DashboardService.Proto.V1.InteractionInput CreateInteractionInputDto(Aspire.Hosting.
InteractionInput
input, IReadOnlyList<string>? updateStateOnChangeInputs = null, long? maxFileUploadSize = null)
Dashboard\DashboardServiceData.cs (5)
254
foreach (
var
input in inputsInfo.Inputs)
302
var choiceInteractionsToUpdate = new HashSet<
InteractionInput
>();
307
if (!inputsInfo.Inputs.TryGetByName(requestInput.Name, out
var
modelInput))
361
foreach (
var
dependentInput in dependentInputs)
370
foreach (
var
inputToUpdate in choiceInteractionsToUpdate)
IInteractionService.cs (25)
60
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
63
/// Prompts the user for a single input using a specified <see cref="
InteractionInput
"/>.
73
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
80
/// <param name="inputs">A collection of <see cref="
InteractionInput
"/> to prompt for.</param>
86
Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
131
InteractionInput
Input,
146
public Action<
InteractionInput
>? OnLoadComplete { get; init; }
260
public required
InteractionInput
Input { get; init; }
263
/// Gets the collection of all <see cref="
InteractionInput
"/> in this prompt.
606
public sealed class InteractionInputCollection : IReadOnlyList<
InteractionInput
>
608
private readonly List<
InteractionInput
> _inputs;
609
private readonly Dictionary<string,
InteractionInput
> _inputsByName;
615
public InteractionInputCollection(IReadOnlyList<
InteractionInput
> inputs)
617
var inputsByName = new Dictionary<string,
InteractionInput
>(StringComparers.InteractionInputName);
621
foreach (
var
input in inputs)
640
public
InteractionInput
this[string name]
644
if (_inputsByName.TryGetValue(name, out
var
input))
657
public
InteractionInput
this[int index] => _inputs[index];
670
public bool TryGetByName(string name, [NotNullWhen(true)] out
InteractionInput
? input)
742
public
InteractionInput
[] ToArray()
756
public IEnumerator<
InteractionInput
> GetEnumerator() => _inputs.GetEnumerator();
764
internal int IndexOf(
InteractionInput
input) => _inputs.IndexOf(input);
779
/// Specifies the type of input for an <see cref="
InteractionInput
"/>.
851
public void AddValidationError(
InteractionInput
input, string errorMessage)
InteractionService.cs (15)
138
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
143
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
148
return InteractionResult.Cancel<
InteractionInput
>();
154
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
167
var
input = inputs[i];
176
if (!inputCollection.TryGetByName(dependsOnInputName, out
var
dependsOnInput))
178
throw new InvalidOperationException($"The input '{input.Name}' has {nameof(
InteractionInput
.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but no such input exists.");
182
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.");
208
foreach (
var
input in inputs)
250
if (completion.State is not IReadOnlyList<
InteractionInput
> inputState)
520
if (completion.State is IReadOnlyList<
InteractionInput
>)
547
if (result.State is IReadOnlyList<
InteractionInput
> inputs)
549
foreach (
var
input in inputs)
561
foreach (
var
input in inputs)
Orchestrator\ParameterProcessor.cs (12)
206
var
valueInput = parameterResource.CreateInput(
236
var
saveInput = new InteractionInput
276
var
deleteFromSecretsInput = new InteractionInput
334
var
input = parameterResource.CreateInput(SetParameterValueName);
351
var
saveParameterInput = CreateSaveParameterInput(hasSavedState);
382
var
deleteFromUserSecretsInput = new InteractionInput
390
var inputs = hasSavedState ? [deleteFromUserSecretsInput] : Array.Empty<
InteractionInput
>();
412
private
InteractionInput
CreateSaveParameterInput(bool hasExistingValue)
450
var deleteFromUserSecrets = arguments.TryGetByName(DeleteFromUserSecretsName, out
var
deleteFromUserSecretsInput) &&
592
var resourceInputs = new List<(ParameterResource ParameterResource,
InteractionInput
Input)>();
597
var
input = parameter.CreateInput();
602
InteractionInput
? saveParameters = null;
ParameterResourceBuilderExtensions.cs (1)
242
public static IResourceBuilder<ParameterResource> WithCustomInput(this IResourceBuilder<ParameterResource> builder, Func<ParameterResource,
InteractionInput
> createInput)
Pipelines\PipelineActivityReporter.cs (2)
424
InteractionInput
? matchingInput;
488
private InputDto CreateInputDto(int interactionId,
InteractionInput
matchingInput, PublishingPromptInputAnswer responseAnswer)
ResourceBuilderExtensions.cs (1)
3004
private static void ValidateCommandArguments(IReadOnlyList<
InteractionInput
> arguments)
Aspire.Hosting.Azure (24)
AzureProvisioningController.cs (13)
271
private static IReadOnlyList<
InteractionInput
> CreateAzureContextCommandArguments() =>
353
internal static IReadOnlyList<
InteractionInput
> CreateChangeLocationCommandArguments(string? deploymentStateResourceName) =>
373
private static
InteractionInput
CreateChangeLocationDeleteConfirmationArgument() => new()
416
var tenantId = context.AllInputs.TryGetByName(TenantIdArgumentName, out
var
tenantInput) && !string.IsNullOrWhiteSpace(tenantInput.Value)
449
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
478
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
481
var resourceGroupName = context.AllInputs.TryGetByName(ResourceGroupArgumentName, out
var
resourceGroupInput) && !string.IsNullOrWhiteSpace(resourceGroupInput.Value)
530
var
resourceGroupInput = validationContext.Inputs[ResourceGroupArgumentName];
541
var
input = validationContext.Inputs[inputName];
887
TenantId: arguments.TryGetByName(TenantIdArgumentName, out
var
tenantInput) ? tenantInput.Value : null);
917
=> arguments.TryGetByName(ConfirmDeleteArgumentName, out
var
input) &&
4348
IReadOnlyList<
InteractionInput
>? Arguments = null,
4361
IReadOnlyList<
InteractionInput
>? Arguments = null,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
198
var
tenantInput = validationContext.Inputs[TenantName];
297
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
351
var
resourceGroupInput = new InteractionInput
373
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
Provisioning\Internal\RunModeProvisioningContextProvider.cs (7)
291
if (validationContext.Inputs.TryGetByName(TenantName, out
var
tenantInput))
299
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
305
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
328
private List<
InteractionInput
> CreateProvisioningInputs(bool forcePrompt, CancellationToken cancellationToken)
330
var inputs = new List<
InteractionInput
>();
377
var tenantId = includeTenantInput && context.AllInputs.TryGetByName(TenantName, out
var
tenantInput)
481
if (inputs.TryGetByName(TenantName, out
var
tenantInput))
Aspire.Hosting.Azure.Tests (28)
AzureDeployerTests.cs (3)
1855
var
apiKeyInput = parameterInputs.Inputs["api-key"];
1856
var
dbInput = parameterInputs.Inputs["mydb"];
1857
var
customInput = parameterInputs.Inputs["custom-setting"];
AzureEnvironmentResourceExtensionsTests.cs (14)
188
var
tenantInput = inputs["tenantId"];
197
var
subscriptionInput = inputs["subscriptionId"];
207
var
resourceGroupInput = inputs["resourceGroup"];
216
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
245
var
tenantInput = inputs["tenantId"];
252
var
subscriptionInput = inputs["subscriptionId"];
263
var
resourceGroupInput = inputs["resourceGroup"];
288
var
subscriptionInput = inputs["subscriptionId"];
290
var
resourceGroupInput = inputs["resourceGroup"];
292
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
2951
var
commandLocationInput = commandInputs[AzureBicepResource.KnownParameters.Location];
2967
var
locationInput = interaction.Inputs[AzureBicepResource.KnownParameters.Location];
4993
private static InteractionInputCollection CloneInputs(IReadOnlyList<
InteractionInput
> inputs)
5013
private static Task LoadInputAsync(IServiceProvider services, InteractionInputCollection inputs,
InteractionInput
input)
ProvisioningContextProviderTests.cs (6)
644
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
652
var
resourceGroupInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.ResourceGroupName];
690
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
736
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
791
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
834
var
resourceGroupInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.ResourceGroupName];
tests\Shared\TestInteractionService.cs (5)
32
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
45
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)
37
internal static IReadOnlyList<
InteractionInput
> CreateArgumentDefinitions(BrowserLogsResource resource, bool userSecretsAvailable)
45
var
scopeInput = new InteractionInput
59
var
browserInput = new InteractionInput
80
var
userDataModeInput = new InteractionInput
103
var
profileInput = new InteractionInput
124
var
saveInput = new InteractionInput
274
var
browser = inputs[BrowserInputName];
282
var
userDataMode = inputs[UserDataModeInputName];
289
var
profile = inputs[ProfileInputName];
298
var
saveToUserSecrets = inputs[SaveToUserSecretsInputName];
Aspire.Hosting.Browsers.Tests (20)
BrowserLogsBuilderExtensionsTests.cs (5)
102
var
browserInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.BrowserInputName);
103
var
userDataModeInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.UserDataModeInputName);
104
var
profileInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.ProfileInputName);
157
var
profileInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.ProfileInputName);
193
var
saveInput = arguments.Single(input => input.Name == BrowserLogsConfigurationManager.SaveToUserSecretsInputName);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (10)
37
internal static IReadOnlyList<
InteractionInput
> CreateArgumentDefinitions(BrowserLogsResource resource, bool userSecretsAvailable)
45
var
scopeInput = new InteractionInput
59
var
browserInput = new InteractionInput
80
var
userDataModeInput = new InteractionInput
103
var
profileInput = new InteractionInput
124
var
saveInput = new InteractionInput
274
var
browser = inputs[BrowserInputName];
282
var
userDataMode = inputs[UserDataModeInputName];
289
var
profile = inputs[ProfileInputName];
298
var
saveToUserSecrets = inputs[SaveToUserSecretsInputName];
tests\Shared\TestInteractionService.cs (5)
32
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
45
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)
32
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
45
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)
338
var
message = ctx.Inputs["message"];
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
87
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)
32
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
45
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (109)
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)
425
var
target = context.Inputs.Single(argument => argument.Name == "target");
821
var
input = inputMaxFileSizeMB > 0
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 };
1139
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
1181
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)
456
var
param1Input = inputsInteraction.Inputs["param1"];
462
var
param2Input = inputsInteraction.Inputs["param2"];
499
var
secretInput = inputsInteraction.Inputs["secretParam"];
534
var
paramInput = inputsInteraction.Inputs["param1"];
537
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
573
var
paramInput = inputsInteraction.Inputs["param1"];
576
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
910
var
saveToUserSecretsInput = setValueCommand.Arguments.Single(argument => argument.Name == ParameterProcessor.SaveToUserSecretsName);
929
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
954
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
988
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
989
var
saveInput = arguments[ParameterProcessor.SaveToUserSecretsName];
1026
var
deleteInput = arguments[ParameterProcessor.DeleteFromUserSecretsName];
1058
var
deleteInput = arguments[ParameterProcessor.DeleteFromUserSecretsName];
Publishing\PipelineActivityReporterTests.cs (2)
651
var
input = new InteractionInput
692
var
input = new InteractionInput
ResourceCommandServiceTests.cs (9)
969
var
invalidArgument = Assert.Single(result.InvalidArguments);
1043
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1133
var
itemArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "item");
1136
var
priorityArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "priority");
1301
var
input = Assert.Single(interaction.Inputs);
1429
var
invalidArgument = Assert.Single(result.InvalidArguments);
1551
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1584
var
target = context.Inputs.Single(argument => argument.Name == "target");
1599
var
invalidArgument = Assert.Single(result.InvalidArguments);
ResourceNotificationTests.cs (2)
1482
var commandArguments = Array.Empty<
InteractionInput
>();
1834
private static ResourceCommandSnapshot CreateTestCommand(IReadOnlyList<
InteractionInput
> arguments)
tests\Shared\TestInteractionService.cs (5)
32
public Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var result = (InteractionResult<
InteractionInput
>)await data.CompletionTcs.Task;
45
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)
87
var
dependsOnInput = c.AllInputs["SSLCertificateType"];
109
var
appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name");
115
var
versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (46)
CommandResources.cs (2)
1302
private static IReadOnlyList<
InteractionInput
> CreateArgumentStressInputs(int fieldCount)
1304
var inputs = new List<
InteractionInput
>
InteractionCommands.cs (44)
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
predefinedOptionsInput = new InteractionInput
293
var
customChoiceInput = new InteractionInput
320
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
341
var
dynamicInput = new InteractionInput
351
var
dynamicCustomChoiceInput = new InteractionInput
362
var
dynamicTextInput = new InteractionInput
375
var
dependsOnInput = context.AllInputs["Dynamic"];
381
var inputs = new List<
InteractionInput
>
410
foreach (
var
updatedInput in result.Data)
420
var
predefinedOptionsInput = new InteractionInput
432
var
customChoiceInput = new InteractionInput
450
var
dynamicInput = new InteractionInput
463
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
482
var inputs = new List<
InteractionInput
>
510
foreach (
var
updatedInput in result.Data)
567
var inputs = new List<
InteractionInput
>();
592
foreach (
var
input in result.Data)
603
var
tenantInput = new InteractionInput
626
var
subscriptionInput = new InteractionInput
665
var
resourceGroupInput = new InteractionInput
696
var
locationInput = new InteractionInput
747
var inputs = new List<
InteractionInput
> { tenantInput, subscriptionInput, resourceGroupInput, locationInput };
758
var
tenant = validationContext.Inputs["Tenant"];
764
var
subscription = validationContext.Inputs["SubscriptionId"];
783
foreach (
var
input in result.Data)
990
var
fileInput = new InteractionInput
1011
var
input = result.Data;
1035
var
fileInput = new InteractionInput
1058
var
input = result.Data;