150 instantiations of InteractionInputCollection
Aspire.Hosting (13)
ApplicationModel\HttpCommandContext.cs (2)
58
public InteractionInputCollection Arguments { get; init; } =
new
([]);
145
public InteractionInputCollection Arguments { get; init; } =
new
([]);
ApplicationModel\ProcessCommandResultContext.cs (1)
64
public InteractionInputCollection Arguments { get; init; } =
new
([]);
ApplicationModel\ResourceCommandService.cs (5)
732
return new
InteractionInputCollection
([]);
748
return new
InteractionInputCollection
(inputs);
755
return new
InteractionInputCollection
([]);
769
return new
InteractionInputCollection
(inputs);
827
return new
InteractionInputCollection
(inputs);
Ats\InteractionExports.cs (2)
878
? new
InteractionInputCollection
([])
879
: new
InteractionInputCollection
(result.Data.Select(InteractionExports.ToResultInput).ToArray());
InteractionService.cs (2)
172
var inputCollection = new
InteractionInputCollection
(inputs);
266
return InteractionResult.Ok(new
InteractionInputCollection
(inputState));
ResourceBuilderExtensions.cs (1)
3397
_ = new
InteractionInputCollection
(arguments);
Aspire.Hosting.Azure.Tests (61)
AzureEnvironmentResourceExtensionsTests.cs (55)
113
Arguments = new
InteractionInputCollection
([])
185
Arguments = new
InteractionInputCollection
([])
310
Arguments = new
InteractionInputCollection
([
658
Arguments = new
InteractionInputCollection
([])
712
Arguments = new
InteractionInputCollection
([])
1178
Arguments = new
InteractionInputCollection
([])
1262
Arguments = new
InteractionInputCollection
([])
1531
Arguments = new
InteractionInputCollection
([])
1595
Arguments = new
InteractionInputCollection
([])
1656
Arguments = new
InteractionInputCollection
([])
1717
Arguments = new
InteractionInputCollection
([])
1852
Arguments = new
InteractionInputCollection
([])
1910
Arguments = new
InteractionInputCollection
([])
1961
Arguments = new
InteractionInputCollection
([])
1973
Arguments = new
InteractionInputCollection
([])
2057
Arguments = new
InteractionInputCollection
([])
2141
Arguments = new
InteractionInputCollection
([])
2235
Arguments = new
InteractionInputCollection
([])
2306
Arguments = new
InteractionInputCollection
([])
2384
Arguments = new
InteractionInputCollection
([])
2398
Arguments = new
InteractionInputCollection
([])
2463
Arguments = new
InteractionInputCollection
([])
2527
Arguments = new
InteractionInputCollection
([])
2581
Arguments = new
InteractionInputCollection
([])
2641
Arguments = new
InteractionInputCollection
([])
2718
Arguments = new
InteractionInputCollection
([])
2732
Arguments = new
InteractionInputCollection
([])
2795
Arguments = new
InteractionInputCollection
([])
2812
Arguments = new
InteractionInputCollection
([])
2893
Arguments = new
InteractionInputCollection
([])
2939
Arguments = new
InteractionInputCollection
([])
2992
Arguments = new
InteractionInputCollection
([])
3006
Arguments = new
InteractionInputCollection
([])
3132
Arguments = new
InteractionInputCollection
([])
3306
Arguments = new
InteractionInputCollection
([])
3437
Arguments = new
InteractionInputCollection
([])
3563
Arguments = new
InteractionInputCollection
([])
3626
Arguments = new
InteractionInputCollection
([])
3752
Arguments = new
InteractionInputCollection
([])
4117
Arguments = new
InteractionInputCollection
([])
4196
Arguments = new
InteractionInputCollection
([])
4268
Arguments = new
InteractionInputCollection
([])
4348
Arguments = new
InteractionInputCollection
([])
4422
Arguments = new
InteractionInputCollection
([])
4474
Arguments = new
InteractionInputCollection
([])
4522
: new
InteractionInputCollection
([])
4566
Arguments = new
InteractionInputCollection
([])
4634
Arguments = new
InteractionInputCollection
([])
4873
Arguments = new
InteractionInputCollection
([])
4925
Arguments = new
InteractionInputCollection
([])
4972
Arguments = new
InteractionInputCollection
([])
5020
Arguments = new
InteractionInputCollection
([])
5158
Arguments = new
InteractionInputCollection
([])
5340
return new
InteractionInputCollection
([.. values.Select(static value => new InteractionInput
5350
return new
InteractionInputCollection
([.. inputs.Select(static input => new InteractionInput
tests\Shared\TestInteractionService.cs (6)
45
var data = new InteractionData(InteractionType.Input, title, message, new
InteractionInputCollection
([input]), options, cancellationToken, new TaskCompletionSource<object>());
53
var data = new InteractionData(InteractionType.Inputs, title, message, new
InteractionInputCollection
(inputs), options, cancellationToken, new TaskCompletionSource<object>());
63
return InteractionResult.Ok(new
InteractionInputCollection
(result.Data));
68
var data = new InteractionData(InteractionType.Notification, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
75
var data = new InteractionData(InteractionType.MessageBox, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
108
var data = new InteractionData(type, title ?? string.Empty, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
309
Arguments = new
InteractionInputCollection
([])
WithBlazorAppTests.cs (1)
327
Arguments = new
InteractionInputCollection
([])
Aspire.Hosting.Browsers.Tests (11)
BrowserLogsBuilderExtensionsTests.cs (5)
108
AllInputs = new
InteractionInputCollection
(arguments),
115
AllInputs = new
InteractionInputCollection
(arguments),
122
AllInputs = new
InteractionInputCollection
(arguments),
161
AllInputs = new
InteractionInputCollection
(arguments),
1734
return new
InteractionInputCollection
(
tests\Shared\TestInteractionService.cs (6)
45
var data = new InteractionData(InteractionType.Input, title, message, new
InteractionInputCollection
([input]), options, cancellationToken, new TaskCompletionSource<object>());
53
var data = new InteractionData(InteractionType.Inputs, title, message, new
InteractionInputCollection
(inputs), options, cancellationToken, new TaskCompletionSource<object>());
63
return InteractionResult.Ok(new
InteractionInputCollection
(result.Data));
68
var data = new InteractionData(InteractionType.Notification, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
75
var data = new InteractionData(InteractionType.MessageBox, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
108
var data = new InteractionData(type, title ?? string.Empty, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.DevTunnels.Tests (9)
DevTunnelResourceBuilderExtensionsTests.cs (3)
612
Arguments = new
InteractionInputCollection
([]),
666
Arguments = new
InteractionInputCollection
([]),
716
Arguments = new
InteractionInputCollection
([]),
tests\Shared\TestInteractionService.cs (6)
45
var data = new InteractionData(InteractionType.Input, title, message, new
InteractionInputCollection
([input]), options, cancellationToken, new TaskCompletionSource<object>());
53
var data = new InteractionData(InteractionType.Inputs, title, message, new
InteractionInputCollection
(inputs), options, cancellationToken, new TaskCompletionSource<object>());
63
return InteractionResult.Ok(new
InteractionInputCollection
(result.Data));
68
var data = new InteractionData(InteractionType.Notification, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
75
var data = new InteractionData(InteractionType.MessageBox, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
108
var data = new InteractionData(type, title ?? string.Empty, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
112
var arguments = new
InteractionInputCollection
(
177
var arguments = new
InteractionInputCollection
(
PromptAgentTests.cs (1)
193
Arguments = new
InteractionInputCollection
(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1179
Arguments = new
InteractionInputCollection
([])
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.RemoteHost.Tests (6)
tests\Shared\TestInteractionService.cs (6)
45
var data = new InteractionData(InteractionType.Input, title, message, new
InteractionInputCollection
([input]), options, cancellationToken, new TaskCompletionSource<object>());
53
var data = new InteractionData(InteractionType.Inputs, title, message, new
InteractionInputCollection
(inputs), options, cancellationToken, new TaskCompletionSource<object>());
63
return InteractionResult.Ok(new
InteractionInputCollection
(result.Data));
68
var data = new InteractionData(InteractionType.Notification, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
75
var data = new InteractionData(InteractionType.MessageBox, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
108
var data = new InteractionData(type, title ?? string.Empty, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.Tests (31)
InteractionServiceTests.cs (8)
753
var collection = new
InteractionInputCollection
(inputs);
793
var collection = new
InteractionInputCollection
(inputs);
827
var collection = new
InteractionInputCollection
(inputs);
849
var exception = Assert.Throws<InvalidOperationException>(() => new
InteractionInputCollection
(inputs));
864
var exception = Assert.Throws<InvalidOperationException>(() => new
InteractionInputCollection
(inputs));
880
var collection = new
InteractionInputCollection
(inputs);
913
var collection = new
InteractionInputCollection
(inputs);
946
var collection = new
InteractionInputCollection
(inputs);
Orchestrator\ParameterProcessorTests.cs (8)
1089
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
1114
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
1148
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
1186
var arguments = new
InteractionInputCollection
(deleteCommand.Arguments);
1218
var arguments = new
InteractionInputCollection
(deleteCommand.Arguments);
1850
return new
InteractionInputCollection
([
1868
return new
InteractionInputCollection
([
2163
var result = await parameterProcessor.DeleteParameterCoreAsync(parameter, new
InteractionInputCollection
([]), CancellationToken.None).DefaultTimeout();
ResourceCommandAnnotationTests.cs (1)
203
Arguments = new
InteractionInputCollection
([]),
ResourceCommandServiceTests.cs (3)
542
var arguments = new
InteractionInputCollection
(
677
var arguments = new
InteractionInputCollection
(
1638
var arguments = new
InteractionInputCollection
(
tests\Shared\TestInteractionService.cs (6)
45
var data = new InteractionData(InteractionType.Input, title, message, new
InteractionInputCollection
([input]), options, cancellationToken, new TaskCompletionSource<object>());
53
var data = new InteractionData(InteractionType.Inputs, title, message, new
InteractionInputCollection
(inputs), options, cancellationToken, new TaskCompletionSource<object>());
63
return InteractionResult.Ok(new
InteractionInputCollection
(result.Data));
68
var data = new InteractionData(InteractionType.Notification, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
75
var data = new InteractionData(InteractionType.MessageBox, title, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>());
108
var data = new InteractionData(type, title ?? string.Empty, message, new
InteractionInputCollection
([]), options, cancellationToken, new TaskCompletionSource<object>())
WithHttpCommandTests.cs (2)
377
var arguments = new
InteractionInputCollection
(
778
var arguments = new
InteractionInputCollection
(
WithProcessCommandTests.cs (3)
180
var arguments = new
InteractionInputCollection
(
259
var arguments = new
InteractionInputCollection
(
374
var arguments = new
InteractionInputCollection
(
Aspire.Hosting.TestUtilities (1)
Utils\TerminalCommandTestHelpers.cs (1)
27
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments = new
InteractionInputCollection
([]),
112
Arguments = new
InteractionInputCollection
([]),
166 references to InteractionInputCollection
Aspire.Hosting (57)
ApplicationModel\HttpCommandContext.cs (3)
58
public
InteractionInputCollection
Arguments { get; init; } = new([]);
90
public required
InteractionInputCollection
Arguments { get; init; }
145
public
InteractionInputCollection
Arguments { get; init; } = new([]);
ApplicationModel\ProcessCommandResultContext.cs (1)
64
public
InteractionInputCollection
Arguments { get; init; } = new([]);
ApplicationModel\ResourceCommandAnnotation.cs (2)
333
internal
InteractionInputCollection
? InvalidArguments { get; init; }
486
public required
InteractionInputCollection
Arguments { get; init; }
ApplicationModel\ResourceCommandService.cs (25)
92
public async Task<ExecuteCommandResult> ExecuteCommandAsync(string resourceId, string commandName,
InteractionInputCollection
arguments, CancellationToken cancellationToken = default)
117
var
arguments = CreateArguments([], argumentValues: null);
130
public async Task<ExecuteCommandResult> ExecuteCommandAsync(IResource resource, string commandName,
InteractionInputCollection
arguments, CancellationToken cancellationToken = default)
213
internal (
InteractionInputCollection
Arguments, string? ErrorMessage) CreateCommandArguments(string resourceId, string commandName, IReadOnlyDictionary<string, string?>? argumentValues)
230
private static (
InteractionInputCollection
Arguments, string? ErrorMessage) CreateCommandArguments(IResource resource, string commandName, IReadOnlyDictionary<string, string?>? argumentValues)
242
private static (
InteractionInputCollection
Arguments, string? ErrorMessage) CreateCommandArguments(ResourceCommandAnnotation annotation, string resolvedCommandName, IReadOnlyDictionary<string, string?>? argumentValues)
271
internal (
InteractionInputCollection
Arguments, string? ErrorMessage) CreateCommandArguments(string resourceId, string commandName, IReadOnlyList<string?>? orderedArgumentValues)
326
internal async Task<ExecuteCommandResult> ExecuteCommandCoreAsync(string resourceId, IResource resource, string commandName,
InteractionInputCollection
arguments, bool argumentsProvided, bool nonInteractive, CancellationToken cancellationToken)
468
internal async Task<(ExecuteCommandResult Result,
InteractionInputCollection
? Arguments)> ValidateCommandArgumentsAsync(string resourceId, string commandName,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
485
var
normalizedArguments = NormalizeCommandArguments(annotation, arguments);
507
var
arguments = options.Arguments;
572
private async Task<bool> ValidateArgumentsAsync(ResourceCommandAnnotation annotation,
InteractionInputCollection
arguments, HashSet<string>? loadedDynamicArgumentNames, CancellationToken cancellationToken)
659
private async Task<HashSet<string>> LoadDynamicCommandArgumentsAsync(
InteractionInputCollection
arguments, CancellationToken cancellationToken)
680
private static bool ShouldLoadDynamicCommandArgument(InputLoadOptions dynamicLoading,
InteractionInputCollection
arguments)
698
private async Task<(
InteractionInputCollection
? Arguments, ExecuteCommandResult? Result)> PromptForCommandArgumentsAsync(ResourceCommandAnnotation annotation,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
728
private static
InteractionInputCollection
CreateArguments(IReadOnlyList<InteractionInput> commandArguments, IReadOnlyDictionary<string, string?>? argumentValues)
751
private static
InteractionInputCollection
CreateArguments(IReadOnlyList<InteractionInput> commandArguments, IReadOnlyList<string?>? orderedArgumentValues)
772
private static
InteractionInputCollection
NormalizeCommandArguments(ResourceCommandAnnotation annotation,
InteractionInputCollection
arguments)
782
private static IReadOnlyDictionary<string, string?>? CreateArgumentValues(
InteractionInputCollection
arguments)
818
private static
InteractionInputCollection
CloneArguments(
InteractionInputCollection
arguments)
834
public
InteractionInputCollection
? Arguments { get; init; }
Ats\InteractionExports.cs (7)
430
/// <see cref="DynamicLoadingOptions.DependsOnInputs"/>. This is the same <see cref="
InteractionInputCollection
"/>
433
/// collection accessor, matching the other contexts that surface an <see cref="
InteractionInputCollection
"/>.
435
public
InteractionInputCollection
Inputs => _inner.AllInputs;
855
/// <see cref="
InteractionInputCollection
"/> handle. That lets polyglot callers reuse the same name-based
870
public required
InteractionInputCollection
Inputs { get; init; }
872
internal static InputsInteractionResult From(InteractionResult<
InteractionInputCollection
> result)
877
var
inputs = result.Canceled || result.Data is null
Backchannel\AuxiliaryBackchannelRpcTarget.cs (5)
296
InteractionInputCollection
? loadedArguments = null;
345
private static (
InteractionInputCollection
Arguments, string? ErrorMessage) CreateCommandArguments(ResourceCommandService resourceCommandService, ExecuteResourceCommandRequest request)
361
private static async Task<(ExecuteCommandResult Result,
InteractionInputCollection
? Arguments)> ValidateResourceCommandAsync(ResourceCommandService resourceCommandService, string resourceName, string commandName,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
366
private static ResourceCommandArgumentValidationError[] CreateValidationErrors(
InteractionInputCollection
? invalidArguments)
Dashboard\DashboardServiceData.cs (1)
126
internal async Task<(ExecuteCommandResultType result, string? message, ApplicationModel.CommandResultData? value,
InteractionInputCollection
? invalidArguments)> ExecuteCommandAsync(string resourceId, string type, ExecuteResourceCommandOptions options, CancellationToken cancellationToken)
IInteractionService.cs (6)
90
/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="
InteractionInputCollection
"/>.
92
Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
200
InteractionInputCollection
AllInputs,
333
public required
InteractionInputCollection
AllInputs { get; init; }
685
/// Initializes a new instance of the <see cref="
InteractionInputCollection
"/> class.
907
public required
InteractionInputCollection
Inputs { get; init; }
InteractionService.cs (5)
165
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
172
var
inputCollection = new InteractionInputCollection(inputs);
263
return InteractionResult.Cancel<
InteractionInputCollection
>();
819
public InputsInteractionInfo(
InteractionInputCollection
inputs)
824
public
InteractionInputCollection
Inputs { get; }
Orchestrator\ParameterProcessor.cs (2)
570
internal async Task<ExecuteCommandResult> SetParameterCoreAsync(ParameterResource parameterResource,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
586
internal async Task<ExecuteCommandResult> DeleteParameterCoreAsync(ParameterResource parameterResource,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
Aspire.Hosting.Azure (4)
AzureProvisioningController.cs (3)
889
private async Task<bool> ChangeAzureContextCommandAsync(DistributedApplicationModel model,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
921
private Task<bool> ChangeResourceLocationCommandAsync(DistributedApplicationModel model, string resourceName,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
945
private static bool IsResourceDeletionConfirmed(
InteractionInputCollection
arguments)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
502
private void ApplyProvisioningInputs(
InteractionInputCollection
inputs)
Aspire.Hosting.Azure.Tests (20)
AzureEnvironmentResourceExtensionsTests.cs (9)
277
var
inputs = CloneInputs(command.Arguments);
482
var
inputs = CloneInputs(changeContextCommand.Arguments);
539
var
inputs = CloneInputs(changeContextCommand.Arguments);
583
var
inputs = CloneInputs(changeContextCommand.Arguments);
768
inputs.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
3293
var
commandInputs = CloneInputs(changeLocationCommand.Arguments);
5338
private static
InteractionInputCollection
CreateArguments(params (string Name, string? Value)[] values)
5348
private static
InteractionInputCollection
CloneInputs(IReadOnlyList<InteractionInput> inputs)
5368
private static Task LoadInputAsync(IServiceProvider services,
InteractionInputCollection
inputs, InteractionInput input)
ProvisioningContextProviderTests.cs (7)
100
interaction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
666
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
857
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
901
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
959
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
1004
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
1050
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
tests\Shared\TestInteractionService.cs (4)
22
internal sealed record InteractionData(InteractionType Type, string Title, string? Message,
InteractionInputCollection
Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs)
51
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
55
var result = (InteractionResult<
InteractionInputCollection
>)await data.CompletionTcs.Task;
60
return InteractionResult.Cancel<
InteractionInputCollection
>();
Aspire.Hosting.Browsers (4)
BrowserLogsConfigurationManager.cs (4)
147
public async Task<ExecuteCommandResult> ConfigureAsync(BrowserLogsResource resource,
InteractionInputCollection
arguments, CancellationToken _)
272
var
inputs = context.Inputs;
462
public static BrowserLogsConfigurationSelection FromInputs(
InteractionInputCollection
inputs)
480
private static bool IsSaveToUserSecretsRequested(
InteractionInputCollection
inputs)
Aspire.Hosting.Browsers.Tests (16)
BrowserLogsBuilderExtensionsTests.cs (8)
482
var
arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "Default", saveToUserSecrets: "true");
525
var
arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "Default");
565
var
arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "__aspire_browser_default__", saveToUserSecrets: "true");
604
var
arguments = CreateConfigureArguments("global", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__", saveToUserSecrets: "true");
649
var
arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__", saveToUserSecrets: "true");
702
var
arguments = CreateConfigureArguments("global", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__");
739
var
arguments = CreateConfigureArguments("resource", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__");
1732
private static
InteractionInputCollection
CreateConfigureArguments(string scope, string browser, string userDataMode, string profile, string? saveToUserSecrets = null)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (4)
147
public async Task<ExecuteCommandResult> ConfigureAsync(BrowserLogsResource resource,
InteractionInputCollection
arguments, CancellationToken _)
272
var
inputs = context.Inputs;
462
public static BrowserLogsConfigurationSelection FromInputs(
InteractionInputCollection
inputs)
480
private static bool IsSaveToUserSecretsRequested(
InteractionInputCollection
inputs)
tests\Shared\TestInteractionService.cs (4)
22
internal sealed record InteractionData(InteractionType Type, string Title, string? Message,
InteractionInputCollection
Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs)
51
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
55
var result = (InteractionResult<
InteractionInputCollection
>)await data.CompletionTcs.Task;
60
return InteractionResult.Cancel<
InteractionInputCollection
>();
Aspire.Hosting.DevTunnels.Tests (4)
tests\Shared\TestInteractionService.cs (4)
22
internal sealed record InteractionData(InteractionType Type, string Title, string? Message,
InteractionInputCollection
Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs)
51
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
55
var result = (InteractionResult<
InteractionInputCollection
>)await data.CompletionTcs.Task;
60
return InteractionResult.Cancel<
InteractionInputCollection
>();
Aspire.Hosting.Foundry.Tests (2)
HostedAgentExtensionTests.cs (2)
112
var
arguments = new InteractionInputCollection(
177
var
arguments = new InteractionInputCollection(
Aspire.Hosting.RemoteHost.Tests (4)
tests\Shared\TestInteractionService.cs (4)
22
internal sealed record InteractionData(InteractionType Type, string Title, string? Message,
InteractionInputCollection
Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs)
51
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
55
var result = (InteractionResult<
InteractionInputCollection
>)await data.CompletionTcs.Task;
60
return InteractionResult.Cancel<
InteractionInputCollection
>();
Aspire.Hosting.Tests (48)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2298
InteractionInputCollection
? capturedArguments = null;
2414
InteractionInputCollection
? capturedArguments = null;
2545
InteractionInputCollection
? capturedArguments = null;
Dashboard\DashboardServiceTests.cs (3)
285
InteractionInputCollection
? capturedArguments = null;
1261
var
resultInputs = Assert.IsType<
InteractionInputCollection
>(result.Data);
InteractionServiceTests.cs (7)
753
var
collection = new InteractionInputCollection(inputs);
793
var
collection = new InteractionInputCollection(inputs);
827
var
collection = new InteractionInputCollection(inputs);
880
var
collection = new InteractionInputCollection(inputs);
913
var
collection = new InteractionInputCollection(inputs);
946
var
collection = new InteractionInputCollection(inputs);
984
var
resultCollection = result.Data;
Orchestrator\ParameterProcessorTests.cs (10)
450
prompt.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
479
prompt.CompletionTcs.TrySetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
1089
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
1114
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
1148
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
1186
var
arguments = new InteractionInputCollection(deleteCommand.Arguments);
1218
var
arguments = new InteractionInputCollection(deleteCommand.Arguments);
1848
private static
InteractionInputCollection
CreateSetParameterArguments(string? value, string? saveToUserSecrets = null)
1866
private static
InteractionInputCollection
CreateDeleteParameterArguments(string? deleteFromUserSecrets = null)
2381
interaction?.CompletionTcs.TrySetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
ResourceCommandServiceTests.cs (13)
516
InteractionInputCollection
? capturedArguments = null;
542
var
arguments = new InteractionInputCollection(
574
InteractionInputCollection
? capturedArguments = null;
615
InteractionInputCollection
? capturedArguments = null;
655
InteractionInputCollection
? capturedArguments = null;
677
var
arguments = new InteractionInputCollection(
914
InteractionInputCollection
? capturedArguments = null;
1147
InteractionInputCollection
? capturedArguments = null;
1267
InteractionInputCollection
? capturedArguments = null;
1343
InteractionInputCollection
? capturedArguments = null;
1373
var
inputs = Assert.IsType<Interaction.InputsInteractionInfo>(interaction.InteractionInfo).Inputs;
1426
InteractionInputCollection
? capturedArguments = null;
1638
var
arguments = new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (4)
22
internal sealed record InteractionData(InteractionType Type, string Title, string? Message,
InteractionInputCollection
Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs)
51
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
55
var result = (InteractionResult<
InteractionInputCollection
>)await data.CompletionTcs.Task;
60
return InteractionResult.Cancel<
InteractionInputCollection
>();
WithHttpCommandTests.cs (5)
333
InteractionInputCollection
? prepareArguments = null;
377
var
arguments = new InteractionInputCollection(
741
InteractionInputCollection
? prepareArguments = null;
742
InteractionInputCollection
? resultArguments = null;
778
var
arguments = new InteractionInputCollection(
WithProcessCommandTests.cs (3)
180
var
arguments = new InteractionInputCollection(
259
var
arguments = new InteractionInputCollection(
374
var
arguments = new InteractionInputCollection(
Stress.AppHost (7)
CommandResources.cs (7)
124
var
arguments = c.Arguments;
345
var
arguments = c.Arguments;
372
var
arguments = c.Arguments;
1312
private static EchoCommandArguments ReadEchoCommandArguments(
InteractionInputCollection
arguments)
1324
private static string GetRequiredCommandArgument(
InteractionInputCollection
arguments, string name)
1329
private static ValidateCommandArguments ReadValidateCommandArguments(
InteractionInputCollection
arguments)
1340
private static LargeTelemetryCommandOptions ReadLargeTelemetryGenerationOptions(
InteractionInputCollection
arguments)