147 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)
165
var inputCollection = new
InteractionInputCollection
(inputs);
259
return InteractionResult.Ok(new
InteractionInputCollection
(inputState));
ResourceBuilderExtensions.cs (1)
3377
_ = new
InteractionInputCollection
(arguments);
Aspire.Hosting.Azure.Tests (58)
AzureEnvironmentResourceExtensionsTests.cs (52)
359
Arguments = new
InteractionInputCollection
([])
413
Arguments = new
InteractionInputCollection
([])
832
Arguments = new
InteractionInputCollection
([])
916
Arguments = new
InteractionInputCollection
([])
1185
Arguments = new
InteractionInputCollection
([])
1249
Arguments = new
InteractionInputCollection
([])
1310
Arguments = new
InteractionInputCollection
([])
1371
Arguments = new
InteractionInputCollection
([])
1506
Arguments = new
InteractionInputCollection
([])
1564
Arguments = new
InteractionInputCollection
([])
1615
Arguments = new
InteractionInputCollection
([])
1627
Arguments = new
InteractionInputCollection
([])
1711
Arguments = new
InteractionInputCollection
([])
1795
Arguments = new
InteractionInputCollection
([])
1889
Arguments = new
InteractionInputCollection
([])
1960
Arguments = new
InteractionInputCollection
([])
2038
Arguments = new
InteractionInputCollection
([])
2052
Arguments = new
InteractionInputCollection
([])
2117
Arguments = new
InteractionInputCollection
([])
2181
Arguments = new
InteractionInputCollection
([])
2235
Arguments = new
InteractionInputCollection
([])
2295
Arguments = new
InteractionInputCollection
([])
2372
Arguments = new
InteractionInputCollection
([])
2386
Arguments = new
InteractionInputCollection
([])
2449
Arguments = new
InteractionInputCollection
([])
2466
Arguments = new
InteractionInputCollection
([])
2547
Arguments = new
InteractionInputCollection
([])
2593
Arguments = new
InteractionInputCollection
([])
2646
Arguments = new
InteractionInputCollection
([])
2660
Arguments = new
InteractionInputCollection
([])
2786
Arguments = new
InteractionInputCollection
([])
2960
Arguments = new
InteractionInputCollection
([])
3091
Arguments = new
InteractionInputCollection
([])
3217
Arguments = new
InteractionInputCollection
([])
3280
Arguments = new
InteractionInputCollection
([])
3406
Arguments = new
InteractionInputCollection
([])
3771
Arguments = new
InteractionInputCollection
([])
3850
Arguments = new
InteractionInputCollection
([])
3922
Arguments = new
InteractionInputCollection
([])
4002
Arguments = new
InteractionInputCollection
([])
4076
Arguments = new
InteractionInputCollection
([])
4128
Arguments = new
InteractionInputCollection
([])
4176
: new
InteractionInputCollection
([])
4220
Arguments = new
InteractionInputCollection
([])
4288
Arguments = new
InteractionInputCollection
([])
4527
Arguments = new
InteractionInputCollection
([])
4579
Arguments = new
InteractionInputCollection
([])
4626
Arguments = new
InteractionInputCollection
([])
4674
Arguments = new
InteractionInputCollection
([])
4812
Arguments = new
InteractionInputCollection
([])
4994
return new
InteractionInputCollection
([.. values.Select(static value => new InteractionInput
5004
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)
328
Arguments = new
InteractionInputCollection
([])
WithBlazorAppTests.cs (1)
326
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)
575
Arguments = new
InteractionInputCollection
([]),
627
Arguments = new
InteractionInputCollection
([]),
675
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)
109
var arguments = new
InteractionInputCollection
(
174
var arguments = new
InteractionInputCollection
(
PromptAgentTests.cs (1)
103
Arguments = new
InteractionInputCollection
(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1156
Arguments = new
InteractionInputCollection
([])
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88
Arguments = new
InteractionInputCollection
([]),
111
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88
Arguments = new
InteractionInputCollection
([]),
111
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88
Arguments = new
InteractionInputCollection
([]),
111
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88
Arguments = new
InteractionInputCollection
([]),
111
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)
88
Arguments = new
InteractionInputCollection
([]),
111
Arguments = new
InteractionInputCollection
([]),
Aspire.Hosting.Tests (31)
InteractionServiceTests.cs (8)
649
var collection = new
InteractionInputCollection
(inputs);
689
var collection = new
InteractionInputCollection
(inputs);
723
var collection = new
InteractionInputCollection
(inputs);
745
var exception = Assert.Throws<InvalidOperationException>(() => new
InteractionInputCollection
(inputs));
760
var exception = Assert.Throws<InvalidOperationException>(() => new
InteractionInputCollection
(inputs));
776
var collection = new
InteractionInputCollection
(inputs);
809
var collection = new
InteractionInputCollection
(inputs);
842
var collection = new
InteractionInputCollection
(inputs);
Orchestrator\ParameterProcessorTests.cs (8)
926
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
951
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
985
var arguments = new
InteractionInputCollection
(setValueCommand.Arguments);
1023
var arguments = new
InteractionInputCollection
(deleteCommand.Arguments);
1055
var arguments = new
InteractionInputCollection
(deleteCommand.Arguments);
1233
return new
InteractionInputCollection
([
1251
return new
InteractionInputCollection
([
1545
var result = await parameterProcessor.DeleteParameterCoreAsync(parameter, new
InteractionInputCollection
([]), CancellationToken.None).DefaultTimeout();
ResourceCommandAnnotationTests.cs (1)
203
Arguments = new
InteractionInputCollection
([]),
ResourceCommandServiceTests.cs (3)
541
var arguments = new
InteractionInputCollection
(
676
var arguments = new
InteractionInputCollection
(
1636
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)
88
Arguments = new
InteractionInputCollection
([]),
111
Arguments = new
InteractionInputCollection
([]),
161 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)
125
internal async Task<(ExecuteCommandResultType result, string? message, ApplicationModel.CommandResultData? value,
InteractionInputCollection
? invalidArguments)> ExecuteCommandAsync(string resourceId, string type, ExecuteResourceCommandOptions options, CancellationToken cancellationToken)
IInteractionService.cs (6)
85
/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="
InteractionInputCollection
"/>.
87
Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
195
InteractionInputCollection
AllInputs,
328
public required
InteractionInputCollection
AllInputs { get; init; }
675
/// Initializes a new instance of the <see cref="
InteractionInputCollection
"/> class.
897
public required
InteractionInputCollection
Inputs { get; init; }
InteractionService.cs (5)
158
public async Task<InteractionResult<
InteractionInputCollection
>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
165
var
inputCollection = new InteractionInputCollection(inputs);
256
return InteractionResult.Cancel<
InteractionInputCollection
>();
810
public InputsInteractionInfo(
InteractionInputCollection
inputs)
815
public
InteractionInputCollection
Inputs { get; }
Orchestrator\ParameterProcessor.cs (2)
426
internal async Task<ExecuteCommandResult> SetParameterCoreAsync(ParameterResource parameterResource,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
443
internal async Task<ExecuteCommandResult> DeleteParameterCoreAsync(ParameterResource parameterResource,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
Aspire.Hosting.Azure (4)
AzureProvisioningController.cs (3)
859
private async Task<bool> ChangeAzureContextCommandAsync(DistributedApplicationModel model,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
889
private Task<bool> ChangeResourceLocationCommandAsync(DistributedApplicationModel model, string resourceName,
InteractionInputCollection
arguments, CancellationToken cancellationToken)
913
private static bool IsResourceDeletionConfirmed(
InteractionInputCollection
arguments)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
477
private void ApplyProvisioningInputs(
InteractionInputCollection
inputs)
Aspire.Hosting.Azure.Tests (18)
AzureEnvironmentResourceExtensionsTests.cs (8)
183
var
inputs = CloneInputs(changeContextCommand.Arguments);
240
var
inputs = CloneInputs(changeContextCommand.Arguments);
284
var
inputs = CloneInputs(changeContextCommand.Arguments);
469
inputs.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
2947
var
commandInputs = CloneInputs(changeLocationCommand.Arguments);
4992
private static
InteractionInputCollection
CreateArguments(params (string Name, string? Value)[] values)
5002
private static
InteractionInputCollection
CloneInputs(IReadOnlyList<InteractionInput> inputs)
5022
private static Task LoadInputAsync(IServiceProvider services,
InteractionInputCollection
inputs, InteractionInput input)
ProvisioningContextProviderTests.cs (6)
464
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
652
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
695
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
752
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
796
inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<
InteractionInputCollection
>());
841
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)
109
var
arguments = new InteractionInputCollection(
174
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 (45)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2251
InteractionInputCollection
? capturedArguments = null;
2367
InteractionInputCollection
? capturedArguments = null;
2498
InteractionInputCollection
? capturedArguments = null;
Dashboard\DashboardServiceTests.cs (3)
285
InteractionInputCollection
? capturedArguments = null;
1218
var
resultInputs = Assert.IsType<
InteractionInputCollection
>(result.Data);
InteractionServiceTests.cs (7)
649
var
collection = new InteractionInputCollection(inputs);
689
var
collection = new InteractionInputCollection(inputs);
723
var
collection = new InteractionInputCollection(inputs);
776
var
collection = new InteractionInputCollection(inputs);
809
var
collection = new InteractionInputCollection(inputs);
842
var
collection = new InteractionInputCollection(inputs);
880
var
resultCollection = result.Data;
Orchestrator\ParameterProcessorTests.cs (7)
926
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
951
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
985
var
arguments = new InteractionInputCollection(setValueCommand.Arguments);
1023
var
arguments = new InteractionInputCollection(deleteCommand.Arguments);
1055
var
arguments = new InteractionInputCollection(deleteCommand.Arguments);
1231
private static
InteractionInputCollection
CreateSetParameterArguments(string? value, string? saveToUserSecrets = null)
1249
private static
InteractionInputCollection
CreateDeleteParameterArguments(string? deleteFromUserSecrets = null)
ResourceCommandServiceTests.cs (13)
515
InteractionInputCollection
? capturedArguments = null;
541
var
arguments = new InteractionInputCollection(
573
InteractionInputCollection
? capturedArguments = null;
614
InteractionInputCollection
? capturedArguments = null;
654
InteractionInputCollection
? capturedArguments = null;
676
var
arguments = new InteractionInputCollection(
913
InteractionInputCollection
? capturedArguments = null;
1146
InteractionInputCollection
? capturedArguments = null;
1266
InteractionInputCollection
? capturedArguments = null;
1341
InteractionInputCollection
? capturedArguments = null;
1371
var
inputs = Assert.IsType<Interaction.InputsInteractionInfo>(interaction.InteractionInfo).Inputs;
1424
InteractionInputCollection
? capturedArguments = null;
1636
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)
123
var
arguments = c.Arguments;
344
var
arguments = c.Arguments;
371
var
arguments = c.Arguments;
1311
private static EchoCommandArguments ReadEchoCommandArguments(
InteractionInputCollection
arguments)
1323
private static string GetRequiredCommandArgument(
InteractionInputCollection
arguments, string name)
1328
private static ValidateCommandArguments ReadValidateCommandArguments(
InteractionInputCollection
arguments)
1339
private static LargeTelemetryCommandOptions ReadLargeTelemetryGenerationOptions(
InteractionInputCollection
arguments)