309 instantiations of InteractionInput
Aspire.Hosting (10)
ApplicationModel\ParameterResource.cs (1)
601
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)
343
var saveInput = new
InteractionInput
383
var deleteFromSecretsInput = new
InteractionInput
493
var deleteFromUserSecretsInput = new
InteractionInput
525
return new
InteractionInput
ParameterResourceBuilderExtensions.cs (1)
294
builder.Resource.Annotations.Add(new InputGeneratorAnnotation(parameter => new
InteractionInput
Aspire.Hosting.Azure (20)
AzureProvisioningController.cs (8)
272
new
()
293
new
()
314
new
()
332
new
()
352
new
InteractionInput
377
new
()
395
private static InteractionInput CreateChangeLocationDeleteConfirmationArgument() =>
new
()
699
new
InteractionInput
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (7)
121
new
InteractionInput
189
new
InteractionInput
215
new
InteractionInput
288
new
InteractionInput
314
new
InteractionInput
382
var resourceGroupInput = new
InteractionInput
480
new
InteractionInput
Provisioning\Internal\RunModeProvisioningContextProvider.cs (5)
346
inputs.Add(new
InteractionInput
372
inputs.Add(new
InteractionInput
407
inputs.Add(new
InteractionInput
448
inputs.Add(new
InteractionInput
489
inputs.Add(new
InteractionInput
Aspire.Hosting.Azure.Tests (8)
AzureDeployerTests.cs (1)
1057
.WithCustomInput(p => new
InteractionInput
AzureEnvironmentResourceExtensionsTests.cs (7)
311
new
() { Name = "tenantId", InputType = InputType.Text, Value = "87654321-4321-4321-4321-210987654321" },
312
new
() { Name = "subscriptionId", InputType = InputType.Text, Value = "12345678-1234-1234-1234-123456789012" },
313
new
() { Name = "resourceGroup", InputType = InputType.Text, Value = "test-rg" },
314
new
() { Name = "location", InputType = InputType.Text, Value = "westus2" },
315
new
() { Name = AzureBicepResource.KnownParameters.TenantResourceSuffix, InputType = InputType.Text, Value = "dev-a" }
5315
return new InteractionInputCollection([.. values.Select(static value => new
InteractionInput
5325
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)
834
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)
114
new
InteractionInput
179
new
InteractionInput
PromptAgentTests.cs (1)
195
new
InteractionInput
Aspire.Hosting.Tests (148)
AddParameterTests.cs (8)
702
.WithCustomInput(p => new
InteractionInput
808
.WithCustomInput(p => new
InteractionInput
834
.WithCustomInput(_ => new
InteractionInput
852
.WithCustomInput(_ => new
InteractionInput
870
.WithCustomInput(_ => new
InteractionInput
888
.WithCustomInput(_ => new
InteractionInput
915
.WithCustomInput(_ => new
InteractionInput
956
.WithCustomInput(p => new
InteractionInput
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
212
new
InteractionInput
2307
new
InteractionInput
2312
new
InteractionInput
2317
new
InteractionInput
2372
new
InteractionInput
2423
new
InteractionInput
2428
new
InteractionInput
2433
new
InteractionInput
2480
new
InteractionInput
2490
new
InteractionInput
2554
new
InteractionInput
2564
new
InteractionInput
2629
new
InteractionInput
2677
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 });
767
new
InteractionInput
{ Name = "Input", InputType = InputType.Text, Label = "Input" });
977
? new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
978
: new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType };
1233
var fileInput = new
InteractionInput
{ Name = "File", InputType = InputType.File };
1234
var textInput = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1272
var input = new
InteractionInput
{ Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1336
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 (7)
1312
parameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1344
regionParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1351
zoneParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1389
parameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1671
new
InteractionInput
1677
new
InteractionInput
1689
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)
52
.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)
146
new
InteractionInput
154
new
InteractionInput
161
new
InteractionInput
203
new
InteractionInput
213
new
InteractionInput
221
new
InteractionInput
229
new
InteractionInput
243
new
InteractionInput
298
new
InteractionInput
308
new
InteractionInput
322
new
InteractionInput
330
new
InteractionInput
389
new
InteractionInput
404
new
InteractionInput
447
new
InteractionInput
456
new
InteractionInput
549
new
InteractionInput
577
new
InteractionInput
651
new
InteractionInput
660
new
InteractionInput
706
new
InteractionInput
720
new
InteractionInput
752
new
InteractionInput
786
new
InteractionInput
795
new
InteractionInput
824
new
InteractionInput
833
new
InteractionInput
842
new
InteractionInput
871
new
InteractionInput
881
new
InteractionInput
891
new
InteractionInput
1058
new
InteractionInput
1067
new
InteractionInput
1076
new
InteractionInput
1085
new
InteractionInput
1094
new
InteractionInput
1103
new
InteractionInput
1111
new
InteractionInput
1120
new
InteractionInput
1128
new
InteractionInput
1137
new
InteractionInput
1146
new
InteractionInput
1155
new
InteractionInput
1384
new
()
1394
new
()
1403
new
()
1416
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
TestShop.AppHost (5)
AppHost.cs (5)
25
.WithCustomInput(parameter =>
new
()
41
.WithCustomInput(parameter =>
new
()
58
.WithCustomInput(parameter =>
new
()
69
.WithCustomInput(parameter =>
new
()
79
.WithCustomInput(parameter =>
new
()
377 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)
569
internal
InteractionInput
CreateInput(string? name = null, bool? required = null, InputLoadOptions? dynamicLoading = null)
573
var
generatedInput = annotation.InputGenerator(this);
601
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)
1389
private static ResourceSnapshotCommandArgument CreateCommandArgument(
InteractionInput
input)
Dashboard\DashboardService.cs (1)
218
internal static Aspire.DashboardService.Proto.V1.InteractionInput CreateInteractionInputDto(Aspire.Hosting.
InteractionInput
input, IReadOnlyList<string>? updateStateOnChangeInputs = null, long? maxFileUploadSize = null)
Dashboard\DashboardServiceData.cs (5)
262
foreach (
var
input in inputsInfo.Inputs)
310
var choiceInteractionsToUpdate = new HashSet<
InteractionInput
>();
315
if (!inputsInfo.Inputs.TryGetByName(requestInput.Name, out
var
modelInput))
369
foreach (
var
dependentInput in dependentInputs)
378
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)
321
var
valueInput = parameterResource.CreateInput(
343
var
saveInput = new InteractionInput
383
var
deleteFromSecretsInput = new InteractionInput
433
var
input = parameterResource.CreateInput(SetParameterValueName);
442
var
saveParameterInput = CreateSaveParameterInput(hasSavedState);
493
var
deleteFromUserSecretsInput = new InteractionInput
501
var inputs = hasSavedState ? [deleteFromUserSecretsInput] : Array.Empty<
InteractionInput
>();
523
private
InteractionInput
CreateSaveParameterInput(bool hasExistingValue)
560
var deleteFromUserSecrets = arguments.TryGetByName(DeleteFromUserSecretsName, out
var
deleteFromUserSecretsInput) &&
729
var resourceInputs = new List<(ParameterResource ParameterResource,
InteractionInput
Input, long Version)>();
735
var
input = parameter.CreateInput();
765
InteractionInput
? saveParameters = null;
ParameterResourceBuilderExtensions.cs (1)
272
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 (26)
AzureProvisioningController.cs (14)
270
internal static IReadOnlyList<
InteractionInput
> CreateAzureContextCommandArguments(bool includeTenantResourceSuffix) =>
375
internal static IReadOnlyList<
InteractionInput
> CreateChangeLocationCommandArguments(string? deploymentStateResourceName) =>
395
private static
InteractionInput
CreateChangeLocationDeleteConfirmationArgument() => new()
438
var tenantId = context.AllInputs.TryGetByName(TenantIdArgumentName, out
var
tenantInput) && !string.IsNullOrWhiteSpace(tenantInput.Value)
471
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
500
var subscriptionId = context.AllInputs.TryGetByName(SubscriptionIdArgumentName, out
var
subscriptionInput) && !string.IsNullOrWhiteSpace(subscriptionInput.Value)
503
var resourceGroupName = context.AllInputs.TryGetByName(ResourceGroupArgumentName, out
var
resourceGroupInput) && !string.IsNullOrWhiteSpace(resourceGroupInput.Value)
552
var
resourceGroupInput = validationContext.Inputs[ResourceGroupArgumentName];
563
var
input = validationContext.Inputs[inputName];
914
TenantId: arguments.TryGetByName(TenantIdArgumentName, out
var
tenantInput) ? tenantInput.Value : null,
915
TenantResourceSuffix: arguments.TryGetByName(AzureBicepResource.KnownParameters.TenantResourceSuffix, out
var
suffixInput)
946
=> arguments.TryGetByName(ConfirmDeleteArgumentName, out
var
input) &&
4483
IReadOnlyList<
InteractionInput
>? Arguments = null,
4496
IReadOnlyList<
InteractionInput
>? Arguments = null,
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
229
var
tenantInput = validationContext.Inputs[TenantName];
328
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
382
var
resourceGroupInput = new InteractionInput
404
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
Provisioning\Internal\RunModeProvisioningContextProvider.cs (8)
302
if (validationContext.Inputs.TryGetByName(TenantName, out
var
tenantInput))
310
var
subscriptionInput = validationContext.Inputs[SubscriptionIdName];
316
var
resourceGroupInput = validationContext.Inputs[ResourceGroupName];
339
private List<
InteractionInput
> CreateProvisioningInputs(bool forcePrompt, CancellationToken cancellationToken)
341
var inputs = new List<
InteractionInput
>();
388
var tenantId = includeTenantInput && context.AllInputs.TryGetByName(TenantName, out
var
tenantInput)
504
if (inputs.TryGetByName(TenantName, out
var
tenantInput))
512
if (inputs.TryGetByName(TenantResourceSuffixName, out
var
suffixInput))
Aspire.Hosting.Azure.Tests (31)
AzureDeployerTests.cs (3)
2106
var
apiKeyInput = parameterInputs.Inputs["api-key"];
2107
var
dbInput = parameterInputs.Inputs["mydb"];
2108
var
customInput = parameterInputs.Inputs["custom-setting"];
AzureEnvironmentResourceExtensionsTests.cs (15)
278
var
suffix = inputs[AzureBicepResource.KnownParameters.TenantResourceSuffix];
484
var
tenantInput = inputs["tenantId"];
493
var
subscriptionInput = inputs["subscriptionId"];
503
var
resourceGroupInput = inputs["resourceGroup"];
512
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
541
var
tenantInput = inputs["tenantId"];
548
var
subscriptionInput = inputs["subscriptionId"];
559
var
resourceGroupInput = inputs["resourceGroup"];
584
var
subscriptionInput = inputs["subscriptionId"];
586
var
resourceGroupInput = inputs["resourceGroup"];
588
var
locationInput = inputs[AzureBicepResource.KnownParameters.Location];
3269
var
commandLocationInput = commandInputs[AzureBicepResource.KnownParameters.Location];
3285
var
locationInput = interaction.Inputs[AzureBicepResource.KnownParameters.Location];
5323
private static InteractionInputCollection CloneInputs(IReadOnlyList<
InteractionInput
> inputs)
5343
private static Task LoadInputAsync(IServiceProvider services, InteractionInputCollection inputs,
InteractionInput
input)
ProvisioningContextProviderTests.cs (8)
40
var
input = Assert.Single(interaction.Inputs);
163
var
input = interaction.Inputs[BaseProvisioningContextProvider.TenantResourceSuffixName];
846
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
854
var
resourceGroupInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.ResourceGroupName];
893
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
940
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
996
var
subscriptionInput = inputsInteraction.Inputs[BaseProvisioningContextProvider.SubscriptionIdName];
1040
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)
72
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)
91
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 (118)
AddParameterTests.cs (27)
725
var
input = parameter.Resource.CreateInput();
743
var
input = parameter.Resource.CreateInput();
757
var
input = parameter.Resource.CreateInput("value");
777
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
791
var
input = parameter.Resource.CreateInput();
819
var
input = parameter.Resource.CreateInput();
841
var
input = parameter.Resource.CreateInput();
859
var
input = parameter.Resource.CreateInput();
877
var
input = parameter.Resource.CreateInput(required: true);
899
var
input = parameter.Resource.CreateInput("value");
927
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
941
var
input = parameter.Resource.CreateInput();
968
var
input = parameter.Resource.CreateInput();
985
[nameof(
InteractionInput
.InputType)] = InputType.Number,
986
[nameof(
InteractionInput
.Label)] = "Worker Count",
987
[nameof(
InteractionInput
.Placeholder)] = "Enter number (1-10)",
988
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>
993
[nameof(
InteractionInput
.Value)] = "2",
994
[nameof(
InteractionInput
.MaxLength)] = 2
999
var
input = parameter.Resource.CreateInput("value", required: true);
1030
var
input = parameter.Resource.CreateInput();
1046
[nameof(
InteractionInput
.Label)] = "",
1047
[nameof(
InteractionInput
.Description)] = "",
1048
[nameof(
InteractionInput
.Placeholder)] = "",
1049
[nameof(
InteractionInput
.Value)] = "",
1050
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>()
1053
var
input = parameter.Resource.CreateInput();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
2685
var
target = context.Inputs.Single(argument => argument.Name == "target");
Dashboard\DashboardServiceTests.cs (8)
430
var
target = context.Inputs.Single(argument => argument.Name == "target");
976
var
input = inputMaxFileSizeMB > 0
1233
var
fileInput = new InteractionInput { Name = "File", InputType = InputType.File };
1234
var
textInput = new InteractionInput { Name = "Text", InputType = InputType.Text };
1272
var
input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1294
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
1336
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)
617
var
param1Input = inputsInteraction.Inputs["param1"];
623
var
param2Input = inputsInteraction.Inputs["param2"];
660
var
secretInput = inputsInteraction.Inputs["secretParam"];
695
var
paramInput = inputsInteraction.Inputs["param1"];
698
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
734
var
paramInput = inputsInteraction.Inputs["param1"];
737
var
saveCheckbox = inputsInteraction.Inputs[ParameterProcessor.SaveToUserSecretsName];
1071
var
saveToUserSecretsInput = setValueCommand.Arguments.Single(argument => argument.Name == ParameterProcessor.SaveToUserSecretsName);
1090
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
1115
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
1149
var
valueInput = arguments[ParameterProcessor.SetParameterValueName];
1150
var
saveInput = arguments[ParameterProcessor.SaveToUserSecretsName];
1187
var
deleteInput = arguments[ParameterProcessor.DeleteFromUserSecretsName];
1219
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)
1380
private static IReadOnlyList<
InteractionInput
> CreateArgumentStressInputs(int fieldCount)
1382
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;