316 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)
151
return await PromptInputAsync(title, message, new
InteractionInput
{ Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (4)
343
var saveInput = new
InteractionInput
383
var deleteFromSecretsInput = new
InteractionInput
493
var deleteFromUserSecretsInput = new
InteractionInput
555
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" }
5340
return new InteractionInputCollection([.. values.Select(static value => new
InteractionInput
5350
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 (155)
AddParameterTests.cs (8)
734
.WithCustomInput(p => new
InteractionInput
840
.WithCustomInput(p => new
InteractionInput
866
.WithCustomInput(_ => new
InteractionInput
884
.WithCustomInput(_ => new
InteractionInput
902
.WithCustomInput(_ => new
InteractionInput
920
.WithCustomInput(_ => new
InteractionInput
947
.WithCustomInput(_ => new
InteractionInput
988
.WithCustomInput(p => new
InteractionInput
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
214
new
InteractionInput
2312
new
InteractionInput
2317
new
InteractionInput
2322
new
InteractionInput
2377
new
InteractionInput
2428
new
InteractionInput
2433
new
InteractionInput
2438
new
InteractionInput
2485
new
InteractionInput
2495
new
InteractionInput
2559
new
InteractionInput
2569
new
InteractionInput
2634
new
InteractionInput
2682
new
InteractionInput
Dashboard\DashboardServiceTests.cs (13)
175
new
InteractionInput
302
new
InteractionInput
307
new
InteractionInput
365
new
InteractionInput
422
new
InteractionInput
571
new
InteractionInput
{ Name = "Input", InputType = InputType.Text });
771
new
InteractionInput
{ Name = "Input", InputType = InputType.Text, Label = "Input" });
983
? new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType, MaxFileSize = inputMaxFileSizeMB * 1024 * 1024 }
984
: new
InteractionInput
{ Name = "TestInput", Label = "Test Input", InputType = inputType };
1240
var fileInput = new
InteractionInput
{ Name = "File", InputType = InputType.File };
1241
var textInput = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1280
var input = new
InteractionInput
{ Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1345
var input = new
InteractionInput
{ Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (54)
466
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Text, };
503
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Text, Required = true };
526
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
549
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
570
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Number };
593
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = InputType.Boolean };
626
var input = new
InteractionInput
{ Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
658
var input = new
InteractionInput
678
var input = new
InteractionInput
696
var input = new
InteractionInput
731
var input = new
InteractionInput
747
new
InteractionInput
{ Name = "Username", Label = "Username", InputType = InputType.Text },
748
new
InteractionInput
{ Name = "Password", Label = "Password", InputType = InputType.SecretText },
749
new
InteractionInput
{ Name = "RememberMe", Label = "Remember Me", InputType = InputType.Boolean }
787
new
InteractionInput
{ Name = "UserName", Label = "User Name", InputType = InputType.Text },
788
new
InteractionInput
{ Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text },
789
new
InteractionInput
{ Name = "Age", InputType = InputType.Number }
821
new
InteractionInput
{ Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text },
822
new
InteractionInput
{ Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text },
823
new
InteractionInput
{ Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text }
844
new
InteractionInput
{ Name = "Duplicate", Label = "First", InputType = InputType.Text },
845
new
InteractionInput
{ Name = "Duplicate", Label = "Second", InputType = InputType.Text }
859
new
InteractionInput
{ Name = "Username", Label = "First", InputType = InputType.Text },
860
new
InteractionInput
{ Name = "USERNAME", Label = "Second", InputType = InputType.Text }
874
new
InteractionInput
{ Name = "Input1", InputType = InputType.Text },
875
new
InteractionInput
{ Name = "Input2", InputType = InputType.Text },
876
new
InteractionInput
{ Name = "Input3", InputType = InputType.Text }
907
new
InteractionInput
{ Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text },
908
new
InteractionInput
{ Name = "EmptyLabel", Label = "", InputType = InputType.Text },
909
new
InteractionInput
{ Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text }
944
new
InteractionInput
{ Name = "Valid", Label = "Valid", InputType = InputType.Text }
960
new
InteractionInput
{ Name = "Username", Label = "Username", InputType = InputType.Text },
961
new
InteractionInput
{ Name = "Password", Label = "Password", InputType = InputType.SecretText }
1014
new
InteractionInput
1067
new
InteractionInput
{ Name = "Username", Label = "Username", InputType = InputType.Text },
1068
new
InteractionInput
1122
new
InteractionInput
{ Name = "Email", Label = "Email", InputType = InputType.Text, Required = true },
1123
new
InteractionInput
{ Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
1174
new
InteractionInput
1190
new
InteractionInput
{ Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
1207
new
InteractionInput
1223
new
InteractionInput
{ Name = "Age", Label = "Age", InputType = InputType.Number, Required = true }
1457
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File, Required = true };
1486
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File };
1511
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File };
1530
var input = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1554
var input = new
InteractionInput
{ Name = "Text", InputType = InputType.Text };
1577
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File, Required = true };
1600
var input = new
InteractionInput
{ Name = "File", Label = "File", InputType = InputType.File, Required = false };
1624
var input = new
InteractionInput
1663
Assert.Throws<ArgumentOutOfRangeException>(() => new
InteractionInput
1670
Assert.Throws<ArgumentOutOfRangeException>(() => new
InteractionInput
1681
var input = new
InteractionInput
1694
var input = new
InteractionInput
Orchestrator\ParameterProcessorTests.cs (14)
1312
parameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1344
regionParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1351
zoneParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1390
regionParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1398
zoneParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1432
regionParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1485
parameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1492
zoneParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1517
static InteractionInput CreateInput(string name) =>
new
() { Name = name, InputType = InputType.Text, Label = name };
1527
zoneParameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1569
parameter.Annotations.Add(new InputGeneratorAnnotation(_ => new
InteractionInput
1851
new
InteractionInput
1857
new
InteractionInput
1869
new
InteractionInput
Publishing\PipelineActivityReporterTests.cs (2)
649
var input = new
InteractionInput
690
var input = new
InteractionInput
ResourceCommandServiceTests.cs (35)
529
new
InteractionInput
534
new
InteractionInput
544
new
InteractionInput
550
new
InteractionInput
587
new
InteractionInput
628
new
InteractionInput
668
new
InteractionInput
679
new
InteractionInput
710
new
InteractionInput
715
new
InteractionInput
721
new
InteractionInput
755
new
InteractionInput
786
new
InteractionInput
817
new
InteractionInput
849
new
InteractionInput
890
new
InteractionInput
952
new
InteractionInput
995
new
InteractionInput
1002
new
InteractionInput
1068
new
InteractionInput
1075
new
InteractionInput
1093
new
InteractionInput
1160
new
InteractionInput
1167
new
InteractionInput
1230
new
InteractionInput
1281
new
InteractionInput
1332
var textDefinition = new
InteractionInput
1337
var messageDefinition = new
InteractionInput
1440
new
InteractionInput
1447
new
InteractionInput
1511
new
InteractionInput
1623
new
InteractionInput
1629
new
InteractionInput
1640
new
InteractionInput
1679
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)
75
var inputNoMarkdown = new
InteractionInput
{ Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." };
76
var inputHasMarkdown = new
InteractionInput
{ Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true };
88
var inputHasMarkdown = new
InteractionInput
{ Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, **neque id** efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.", EnableDescriptionMarkdown = true };
89
var choiceWithLongContent = new
InteractionInput
100
var choiceCustomOptionsWithLongContent = new
InteractionInput
159
var dinnerInput = new
InteractionInput
172
var requirementsInput = new
InteractionInput
211
var dinnerInput = new
InteractionInput
239
var requirementsInput = new
InteractionInput
252
var numberOfPeopleInput = new
InteractionInput
{ Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
255
new
InteractionInput
{ Name = "Name", InputType = InputType.Text, Label = "Name", Description = "The name for the dinner reservation. Maximum 50 characters.", Placeholder = "Enter name", Required = true, MaxLength = 50 },
256
new
InteractionInput
{ Name = "Password", InputType = InputType.SecretText, Label = "Password", Description = "The password for the reservation. Maximum 20 characters.", Placeholder = "Enter password", Required = true, MaxLength = 20 },
260
new
InteractionInput
{ Name = "RememberMe", InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
299
new
InteractionInput
308
new
InteractionInput
317
new
InteractionInput
328
new
InteractionInput
339
new
InteractionInput
348
new
InteractionInput
357
new
InteractionInput
378
var predefinedOptionsInput = new
InteractionInput
390
var customChoiceInput = new
InteractionInput
438
var dynamicInput = new
InteractionInput
448
var dynamicCustomChoiceInput = new
InteractionInput
459
var dynamicTextInput = new
InteractionInput
517
var predefinedOptionsInput = new
InteractionInput
529
var customChoiceInput = new
InteractionInput
547
var dynamicInput = new
InteractionInput
584
new
InteractionInput
{ Name = "Receipt", InputType = InputType.File, Label = "Receipt", Placeholder = "Upload receipt", Required = true },
667
inputs.Add(new
InteractionInput
700
var tenantInput = new
InteractionInput
723
var subscriptionInput = new
InteractionInput
762
var resourceGroupInput = new
InteractionInput
793
var locationInput = new
InteractionInput
1087
var fileInput = new
InteractionInput
1132
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
()
381 references to InteractionInput
Aspire.Hosting (110)
ApplicationModel\CommandOptions.cs (3)
13
private IReadOnlyList<
InteractionInput
> _arguments = [];
37
/// <see cref="
InteractionInput
.Name"/>.
40
public IReadOnlyList<
InteractionInput
> Arguments
ApplicationModel\CustomResourceSnapshot.cs (1)
491
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)
1390
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)
66
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
69
/// Prompts the user for a single input using a specified <see cref="
InteractionInput
"/>.
79
Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
86
/// <param name="inputs">A collection of <see cref="
InteractionInput
"/> to prompt for.</param>
92
Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
199
InteractionInput
Input,
214
public Action<
InteractionInput
>? OnLoadComplete { get; init; }
328
public required
InteractionInput
Input { get; init; }
331
/// Gets the collection of all <see cref="
InteractionInput
"/> in this prompt.
679
public sealed class InteractionInputCollection : IReadOnlyList<
InteractionInput
>
681
private readonly List<
InteractionInput
> _inputs;
682
private readonly Dictionary<string,
InteractionInput
> _inputsByName;
688
public InteractionInputCollection(IReadOnlyList<
InteractionInput
> inputs)
690
var inputsByName = new Dictionary<string,
InteractionInput
>(StringComparers.InteractionInputName);
694
foreach (
var
input in inputs)
713
public
InteractionInput
this[string name]
717
if (_inputsByName.TryGetValue(name, out
var
input))
730
public
InteractionInput
this[int index] => _inputs[index];
743
public bool TryGetByName(string name, [NotNullWhen(true)] out
InteractionInput
? input)
815
public
InteractionInput
[] ToArray()
829
public IEnumerator<
InteractionInput
> GetEnumerator() => _inputs.GetEnumerator();
837
internal int IndexOf(
InteractionInput
input) => _inputs.IndexOf(input);
852
/// Specifies the type of input for an <see cref="
InteractionInput
"/>.
924
public void AddValidationError(
InteractionInput
input, string errorMessage)
InteractionService.cs (15)
149
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
154
public async Task<InteractionResult<
InteractionInput
>> PromptInputAsync(string title, string? message,
InteractionInput
input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
159
return InteractionResult.Cancel<
InteractionInput
>();
165
public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<
InteractionInput
> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
178
var
input = inputs[i];
187
if (!inputCollection.TryGetByName(dependsOnInputName, out
var
dependsOnInput))
189
throw new InvalidOperationException($"The input '{input.Name}' has {nameof(
InteractionInput
.DynamicLoading)} that depends on an input named '{dependsOnInputName}', but no such input exists.");
193
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.");
219
foreach (
var
input in inputs)
261
if (completion.State is not IReadOnlyList<
InteractionInput
> inputState)
570
if (completion.State is IReadOnlyList<
InteractionInput
>)
597
if (result.State is IReadOnlyList<
InteractionInput
> inputs)
599
foreach (
var
input in inputs)
611
foreach (
var
input in inputs)
Orchestrator\ParameterProcessor.cs (14)
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
>();
526
List<(ParameterResource ParameterResource,
InteractionInput
Input, long Version)> resourceInputs,
527
List<(ParameterResource ParameterResource,
InteractionInput
Input, long Version)> inputsToRename,
553
private
InteractionInput
CreateSaveParameterInput(bool hasExistingValue)
590
var deleteFromUserSecrets = arguments.TryGetByName(DeleteFromUserSecretsName, out
var
deleteFromUserSecretsInput) &&
759
var resourceInputs = new List<(ParameterResource ParameterResource,
InteractionInput
Input, long Version)>();
765
var
input = parameter.CreateInput();
801
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)
3395
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];
3294
var
commandLocationInput = commandInputs[AzureBicepResource.KnownParameters.Location];
3310
var
locationInput = interaction.Inputs[AzureBicepResource.KnownParameters.Location];
5348
private static InteractionInputCollection CloneInputs(IReadOnlyList<
InteractionInput
> inputs)
5368
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 (120)
AddParameterTests.cs (27)
757
var
input = parameter.Resource.CreateInput();
775
var
input = parameter.Resource.CreateInput();
789
var
input = parameter.Resource.CreateInput("value");
809
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
823
var
input = parameter.Resource.CreateInput();
851
var
input = parameter.Resource.CreateInput();
873
var
input = parameter.Resource.CreateInput();
891
var
input = parameter.Resource.CreateInput();
909
var
input = parameter.Resource.CreateInput(required: true);
931
var
input = parameter.Resource.CreateInput("value");
959
var
input = parameter.Resource.CreateInput(dynamicLoading: dynamicLoading);
973
var
input = parameter.Resource.CreateInput();
1000
var
input = parameter.Resource.CreateInput();
1017
[nameof(
InteractionInput
.InputType)] = InputType.Number,
1018
[nameof(
InteractionInput
.Label)] = "Worker Count",
1019
[nameof(
InteractionInput
.Placeholder)] = "Enter number (1-10)",
1020
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>
1025
[nameof(
InteractionInput
.Value)] = "2",
1026
[nameof(
InteractionInput
.MaxLength)] = 2
1031
var
input = parameter.Resource.CreateInput("value", required: true);
1062
var
input = parameter.Resource.CreateInput();
1078
[nameof(
InteractionInput
.Label)] = "",
1079
[nameof(
InteractionInput
.Description)] = "",
1080
[nameof(
InteractionInput
.Placeholder)] = "",
1081
[nameof(
InteractionInput
.Value)] = "",
1082
[nameof(
InteractionInput
.Options)] = new Dictionary<string, string>()
1085
var
input = parameter.Resource.CreateInput();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
2690
var
target = context.Inputs.Single(argument => argument.Name == "target");
Dashboard\DashboardServiceTests.cs (8)
430
var
target = context.Inputs.Single(argument => argument.Name == "target");
982
var
input = inputMaxFileSizeMB > 0
1240
var
fileInput = new InteractionInput { Name = "File", InputType = InputType.File };
1241
var
textInput = new InteractionInput { Name = "Text", InputType = InputType.Text };
1280
var
input = new InteractionInput { Name = "File", InputType = InputType.File, Required = true, AllowMultipleFiles = true };
1302
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
1345
var
input = new InteractionInput { Name = "File", InputType = InputType.File };
InteractionServiceTests.cs (41)
466
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, };
503
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true };
526
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
549
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
570
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Number };
593
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Boolean };
626
var
input = new InteractionInput { Name = "Value", Label = "Value", InputType = inputType, MaxLength = maxLength };
658
var
input = new InteractionInput
678
var
input = new InteractionInput
696
var
input = new InteractionInput
731
var
input = new InteractionInput
745
var inputs = new List<
InteractionInput
>
767
Assert.True(collection.TryGetByName("Username", out
var
usernameInput));
770
Assert.False(collection.TryGetByName("NonExistent", out
var
nonExistentInput));
785
var inputs = new List<
InteractionInput
>
819
var inputs = new List<
InteractionInput
>
842
var inputs = new List<
InteractionInput
>
857
var inputs = new List<
InteractionInput
>
872
var inputs = new List<
InteractionInput
>
905
var inputs = new List<
InteractionInput
>
942
var inputs = new List<
InteractionInput
>
958
var inputs = new List<
InteractionInput
>
1012
var inputs = new List<
InteractionInput
>
1065
var inputs = new List<
InteractionInput
>
1120
var inputs = new List<
InteractionInput
>
1137
var
emailInput = context.Inputs["Email"];
1138
var
ageInput = context.Inputs["Age"];
1172
var inputs = new List<
InteractionInput
>
1205
var inputs = new List<
InteractionInput
>
1457
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true };
1475
var
resultInput = Assert.IsType<
InteractionInput
>(result.Data);
1486
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File };
1511
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File };
1530
var
input = new InteractionInput { Name = "Text", InputType = InputType.Text };
1554
var
input = new InteractionInput { Name = "Text", InputType = InputType.Text };
1577
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = true };
1600
var
input = new InteractionInput { Name = "File", Label = "File", InputType = InputType.File, Required = false };
1624
var
input = new InteractionInput
1681
var
input = new InteractionInput
1694
var
input = new InteractionInput
Orchestrator\ParameterProcessorTests.cs (16)
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];
1517
static
InteractionInput
CreateInput(string name) => new() { Name = name, InputType = InputType.Text, Label = name };
1551
var
zoneInput = inputsInteraction.Inputs["Zone"];
Publishing\PipelineActivityReporterTests.cs (2)
649
var
input = new InteractionInput
690
var
input = new InteractionInput
ResourceCommandServiceTests.cs (13)
971
var
invalidArgument = Assert.Single(result.InvalidArguments);
1045
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1135
var
itemArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "item");
1138
var
priorityArgument = Assert.Single(result.InvalidArguments, argument => argument.Name == "priority");
1303
var
input = Assert.Single(interaction.Inputs);
1332
var
textDefinition = new InteractionInput
1337
var
messageDefinition = new InteractionInput
1360
InteractionInput
? previousInput = null;
1374
var
input = inputs["text"];
1534
var
invalidArgument = Assert.Single(result.InvalidArguments);
1656
var
invalidArgument = Assert.Single(result.InvalidArguments, argument => argument.ValidationErrors.Count > 0);
1689
var
target = context.Inputs.Single(argument => argument.Name == "target");
1704
var
invalidArgument = Assert.Single(result.InvalidArguments);
ResourceNotificationTests.cs (2)
1940
var commandArguments = Array.Empty<
InteractionInput
>();
2292
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)
75
var
inputNoMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." };
76
var
inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true };
88
var
inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, **neque id** efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.", EnableDescriptionMarkdown = true };
89
var
choiceWithLongContent = new InteractionInput
100
var
choiceCustomOptionsWithLongContent = new InteractionInput
133
var
input = context.Inputs[0];
151
var
input = result.Data;
159
var
dinnerInput = new InteractionInput
172
var
requirementsInput = new InteractionInput
201
foreach (
var
updatedInput in result.Data)
211
var
dinnerInput = new InteractionInput
239
var
requirementsInput = new InteractionInput
252
var
numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople", InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
253
var inputs = new List<
InteractionInput
>
287
foreach (
var
updatedInput in result.Data)
297
var inputs = new List<
InteractionInput
>
378
var
predefinedOptionsInput = new InteractionInput
390
var
customChoiceInput = new InteractionInput
417
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
438
var
dynamicInput = new InteractionInput
448
var
dynamicCustomChoiceInput = new InteractionInput
459
var
dynamicTextInput = new InteractionInput
472
var
dependsOnInput = context.AllInputs["Dynamic"];
478
var inputs = new List<
InteractionInput
>
507
foreach (
var
updatedInput in result.Data)
517
var
predefinedOptionsInput = new InteractionInput
529
var
customChoiceInput = new InteractionInput
547
var
dynamicInput = new InteractionInput
560
var
dependsOnInput = context.AllInputs["PredefinedOptions"];
579
var inputs = new List<
InteractionInput
>
607
foreach (
var
updatedInput in result.Data)
664
var inputs = new List<
InteractionInput
>();
689
foreach (
var
input in result.Data)
700
var
tenantInput = new InteractionInput
723
var
subscriptionInput = new InteractionInput
762
var
resourceGroupInput = new InteractionInput
793
var
locationInput = new InteractionInput
844
var inputs = new List<
InteractionInput
> { tenantInput, subscriptionInput, resourceGroupInput, locationInput };
855
var
tenant = validationContext.Inputs["Tenant"];
861
var
subscription = validationContext.Inputs["SubscriptionId"];
880
foreach (
var
input in result.Data)
1087
var
fileInput = new InteractionInput
1108
var
input = result.Data;
1132
var
fileInput = new InteractionInput
1155
var
input = result.Data;