133 instantiations of InteractionInputCollection
Aspire.Hosting (13)
ApplicationModel\HttpCommandContext.cs (2)
58public InteractionInputCollection Arguments { get; init; } = new([]); 145public InteractionInputCollection Arguments { get; init; } = new([]);
ApplicationModel\ProcessCommandResultContext.cs (1)
64public InteractionInputCollection Arguments { get; init; } = new([]);
ApplicationModel\ResourceCommandService.cs (5)
732return new InteractionInputCollection([]); 748return new InteractionInputCollection(inputs); 755return new InteractionInputCollection([]); 769return new InteractionInputCollection(inputs); 827return new InteractionInputCollection(inputs);
Ats\InteractionExports.cs (2)
878? new InteractionInputCollection([]) 879: new InteractionInputCollection(result.Data.Select(InteractionExports.ToResultInput).ToArray());
InteractionService.cs (2)
161var inputCollection = new InteractionInputCollection(inputs); 255return InteractionResult.Ok(new InteractionInputCollection(inputState));
ResourceBuilderExtensions.cs (1)
3006_ = new InteractionInputCollection(arguments);
Aspire.Hosting.Azure.Tests (58)
AzureEnvironmentResourceExtensionsTests.cs (52)
362Arguments = new InteractionInputCollection([]) 416Arguments = new InteractionInputCollection([]) 835Arguments = new InteractionInputCollection([]) 919Arguments = new InteractionInputCollection([]) 1188Arguments = new InteractionInputCollection([]) 1252Arguments = new InteractionInputCollection([]) 1313Arguments = new InteractionInputCollection([]) 1374Arguments = new InteractionInputCollection([]) 1509Arguments = new InteractionInputCollection([]) 1567Arguments = new InteractionInputCollection([]) 1618Arguments = new InteractionInputCollection([]) 1630Arguments = new InteractionInputCollection([]) 1714Arguments = new InteractionInputCollection([]) 1798Arguments = new InteractionInputCollection([]) 1892Arguments = new InteractionInputCollection([]) 1963Arguments = new InteractionInputCollection([]) 2041Arguments = new InteractionInputCollection([]) 2055Arguments = new InteractionInputCollection([]) 2120Arguments = new InteractionInputCollection([]) 2184Arguments = new InteractionInputCollection([]) 2238Arguments = new InteractionInputCollection([]) 2298Arguments = new InteractionInputCollection([]) 2375Arguments = new InteractionInputCollection([]) 2389Arguments = new InteractionInputCollection([]) 2452Arguments = new InteractionInputCollection([]) 2469Arguments = new InteractionInputCollection([]) 2550Arguments = new InteractionInputCollection([]) 2596Arguments = new InteractionInputCollection([]) 2649Arguments = new InteractionInputCollection([]) 2663Arguments = new InteractionInputCollection([]) 2789Arguments = new InteractionInputCollection([]) 2963Arguments = new InteractionInputCollection([]) 3094Arguments = new InteractionInputCollection([]) 3220Arguments = new InteractionInputCollection([]) 3283Arguments = new InteractionInputCollection([]) 3409Arguments = new InteractionInputCollection([]) 3774Arguments = new InteractionInputCollection([]) 3853Arguments = new InteractionInputCollection([]) 3925Arguments = new InteractionInputCollection([]) 4005Arguments = new InteractionInputCollection([]) 4079Arguments = new InteractionInputCollection([]) 4131Arguments = new InteractionInputCollection([]) 4179: new InteractionInputCollection([]) 4223Arguments = new InteractionInputCollection([]) 4291Arguments = new InteractionInputCollection([]) 4530Arguments = new InteractionInputCollection([]) 4582Arguments = new InteractionInputCollection([]) 4629Arguments = new InteractionInputCollection([]) 4677Arguments = new InteractionInputCollection([]) 4815Arguments = new InteractionInputCollection([]) 4985return new InteractionInputCollection([.. values.Select(static value => new InteractionInput 4995return new InteractionInputCollection([.. inputs.Select(static input => new InteractionInput
tests\Shared\TestInteractionService.cs (6)
39var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 47var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 57return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 62var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 69var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 85var data = new InteractionData(InteractionType.Progress, options.Title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
253Arguments = new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
326Arguments = new InteractionInputCollection([])
Aspire.Hosting.Browsers.Tests (11)
BrowserLogsBuilderExtensionsTests.cs (5)
109AllInputs = new InteractionInputCollection(arguments), 116AllInputs = new InteractionInputCollection(arguments), 123AllInputs = new InteractionInputCollection(arguments), 162AllInputs = new InteractionInputCollection(arguments), 1735return new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (6)
39var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 47var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 57return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 62var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 69var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 85var data = new InteractionData(InteractionType.Progress, options.Title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
Aspire.Hosting.DevTunnels.Tests (9)
DevTunnelResourceBuilderExtensionsTests.cs (3)
471Arguments = new InteractionInputCollection([]), 523Arguments = new InteractionInputCollection([]), 571Arguments = new InteractionInputCollection([]),
tests\Shared\TestInteractionService.cs (6)
39var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 47var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 57return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 62var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 69var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 85var data = new InteractionData(InteractionType.Progress, options.Title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
108var arguments = new InteractionInputCollection( 173var arguments = new InteractionInputCollection(
PromptAgentTests.cs (1)
105Arguments = new InteractionInputCollection(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
782Arguments = new InteractionInputCollection([])
Aspire.Hosting.RemoteHost.Tests (6)
tests\Shared\TestInteractionService.cs (6)
39var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 47var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 57return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 62var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 69var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 85var data = new InteractionData(InteractionType.Progress, options.Title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
Aspire.Hosting.Tests (30)
InteractionServiceTests.cs (8)
649var collection = new InteractionInputCollection(inputs); 689var collection = new InteractionInputCollection(inputs); 723var collection = new InteractionInputCollection(inputs); 745var exception = Assert.Throws<InvalidOperationException>(() => new InteractionInputCollection(inputs)); 760var exception = Assert.Throws<InvalidOperationException>(() => new InteractionInputCollection(inputs)); 776var collection = new InteractionInputCollection(inputs); 809var collection = new InteractionInputCollection(inputs); 842var collection = new InteractionInputCollection(inputs);
Orchestrator\ParameterProcessorTests.cs (8)
928var arguments = new InteractionInputCollection(setValueCommand.Arguments); 953var arguments = new InteractionInputCollection(setValueCommand.Arguments); 987var arguments = new InteractionInputCollection(setValueCommand.Arguments); 1025var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1057var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1235return new InteractionInputCollection([ 1253return new InteractionInputCollection([ 1547var result = await parameterProcessor.DeleteParameterCoreAsync(parameter, new InteractionInputCollection([]), CancellationToken.None).DefaultTimeout();
ResourceCommandServiceTests.cs (3)
540var arguments = new InteractionInputCollection( 675var arguments = new InteractionInputCollection( 1533var arguments = new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (6)
39var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 47var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 57return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 62var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 69var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 85var data = new InteractionData(InteractionType.Progress, options.Title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
WithHttpCommandTests.cs (2)
377var arguments = new InteractionInputCollection( 778var arguments = new InteractionInputCollection(
WithProcessCommandTests.cs (3)
180var arguments = new InteractionInputCollection( 259var arguments = new InteractionInputCollection( 374var arguments = new InteractionInputCollection(
159 references to InteractionInputCollection
Aspire.Hosting (57)
ApplicationModel\HttpCommandContext.cs (3)
58public InteractionInputCollection Arguments { get; init; } = new([]); 90public required InteractionInputCollection Arguments { get; init; } 145public InteractionInputCollection Arguments { get; init; } = new([]);
ApplicationModel\ProcessCommandResultContext.cs (1)
64public InteractionInputCollection Arguments { get; init; } = new([]);
ApplicationModel\ResourceCommandAnnotation.cs (2)
333internal InteractionInputCollection? InvalidArguments { get; init; } 486public required InteractionInputCollection Arguments { get; init; }
ApplicationModel\ResourceCommandService.cs (25)
92public async Task<ExecuteCommandResult> ExecuteCommandAsync(string resourceId, string commandName, InteractionInputCollection arguments, CancellationToken cancellationToken = default) 117var arguments = CreateArguments([], argumentValues: null); 130public async Task<ExecuteCommandResult> ExecuteCommandAsync(IResource resource, string commandName, InteractionInputCollection arguments, CancellationToken cancellationToken = default) 213internal (InteractionInputCollection Arguments, string? ErrorMessage) CreateCommandArguments(string resourceId, string commandName, IReadOnlyDictionary<string, string?>? argumentValues) 230private static (InteractionInputCollection Arguments, string? ErrorMessage) CreateCommandArguments(IResource resource, string commandName, IReadOnlyDictionary<string, string?>? argumentValues) 242private static (InteractionInputCollection Arguments, string? ErrorMessage) CreateCommandArguments(ResourceCommandAnnotation annotation, string resolvedCommandName, IReadOnlyDictionary<string, string?>? argumentValues) 271internal (InteractionInputCollection Arguments, string? ErrorMessage) CreateCommandArguments(string resourceId, string commandName, IReadOnlyList<string?>? orderedArgumentValues) 326internal async Task<ExecuteCommandResult> ExecuteCommandCoreAsync(string resourceId, IResource resource, string commandName, InteractionInputCollection arguments, bool argumentsProvided, bool nonInteractive, CancellationToken cancellationToken) 468internal async Task<(ExecuteCommandResult Result, InteractionInputCollection? Arguments)> ValidateCommandArgumentsAsync(string resourceId, string commandName, InteractionInputCollection arguments, CancellationToken cancellationToken) 485var normalizedArguments = NormalizeCommandArguments(annotation, arguments); 507var arguments = options.Arguments; 572private async Task<bool> ValidateArgumentsAsync(ResourceCommandAnnotation annotation, InteractionInputCollection arguments, HashSet<string>? loadedDynamicArgumentNames, CancellationToken cancellationToken) 659private async Task<HashSet<string>> LoadDynamicCommandArgumentsAsync(InteractionInputCollection arguments, CancellationToken cancellationToken) 680private static bool ShouldLoadDynamicCommandArgument(InputLoadOptions dynamicLoading, InteractionInputCollection arguments) 698private async Task<(InteractionInputCollection? Arguments, ExecuteCommandResult? Result)> PromptForCommandArgumentsAsync(ResourceCommandAnnotation annotation, InteractionInputCollection arguments, CancellationToken cancellationToken) 728private static InteractionInputCollection CreateArguments(IReadOnlyList<InteractionInput> commandArguments, IReadOnlyDictionary<string, string?>? argumentValues) 751private static InteractionInputCollection CreateArguments(IReadOnlyList<InteractionInput> commandArguments, IReadOnlyList<string?>? orderedArgumentValues) 772private static InteractionInputCollection NormalizeCommandArguments(ResourceCommandAnnotation annotation, InteractionInputCollection arguments) 782private static IReadOnlyDictionary<string, string?>? CreateArgumentValues(InteractionInputCollection arguments) 818private static InteractionInputCollection CloneArguments(InteractionInputCollection arguments) 834public 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"/>. 435public InteractionInputCollection Inputs => _inner.AllInputs; 855/// <see cref="InteractionInputCollection"/> handle. That lets polyglot callers reuse the same name-based 870public required InteractionInputCollection Inputs { get; init; } 872internal static InputsInteractionResult From(InteractionResult<InteractionInputCollection> result) 877var inputs = result.Canceled || result.Data is null
Backchannel\AuxiliaryBackchannelRpcTarget.cs (5)
294InteractionInputCollection? loadedArguments = null; 343private static (InteractionInputCollection Arguments, string? ErrorMessage) CreateCommandArguments(ResourceCommandService resourceCommandService, ExecuteResourceCommandRequest request) 359private static async Task<(ExecuteCommandResult Result, InteractionInputCollection? Arguments)> ValidateResourceCommandAsync(ResourceCommandService resourceCommandService, string resourceName, string commandName, InteractionInputCollection arguments, CancellationToken cancellationToken) 364private static ResourceCommandArgumentValidationError[] CreateValidationErrors(InteractionInputCollection? invalidArguments)
Dashboard\DashboardServiceData.cs (1)
125internal async Task<(ExecuteCommandResultType result, string? message, ApplicationModel.CommandResultData? value, InteractionInputCollection? invalidArguments)> ExecuteCommandAsync(string resourceId, string type, ExecuteResourceCommandOptions options, CancellationToken cancellationToken)
IInteractionService.cs (6)
84/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>. 86Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 132InteractionInputCollection AllInputs, 265public required InteractionInputCollection AllInputs { get; init; } 612/// Initializes a new instance of the <see cref="InteractionInputCollection"/> class. 834public required InteractionInputCollection Inputs { get; init; }
InteractionService.cs (5)
154public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 161var inputCollection = new InteractionInputCollection(inputs); 252return InteractionResult.Cancel<InteractionInputCollection>(); 767public InputsInteractionInfo(InteractionInputCollection inputs) 772public InteractionInputCollection Inputs { get; }
Orchestrator\ParameterProcessor.cs (2)
429internal async Task<ExecuteCommandResult> SetParameterCoreAsync(ParameterResource parameterResource, InteractionInputCollection arguments, CancellationToken cancellationToken) 446internal async Task<ExecuteCommandResult> DeleteParameterCoreAsync(ParameterResource parameterResource, InteractionInputCollection arguments, CancellationToken cancellationToken)
Aspire.Hosting.Azure (4)
AzureProvisioningController.cs (3)
862private async Task<bool> ChangeAzureContextCommandAsync(DistributedApplicationModel model, InteractionInputCollection arguments, CancellationToken cancellationToken) 892private Task<bool> ChangeResourceLocationCommandAsync(DistributedApplicationModel model, string resourceName, InteractionInputCollection arguments, CancellationToken cancellationToken) 916private static bool IsResourceDeletionConfirmed(InteractionInputCollection arguments)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
479private void ApplyProvisioningInputs(InteractionInputCollection inputs)
Aspire.Hosting.Azure.Tests (18)
AzureEnvironmentResourceExtensionsTests.cs (8)
186var inputs = CloneInputs(changeContextCommand.Arguments); 243var inputs = CloneInputs(changeContextCommand.Arguments); 287var inputs = CloneInputs(changeContextCommand.Arguments); 472inputs.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 2950var commandInputs = CloneInputs(changeLocationCommand.Arguments); 4983private static InteractionInputCollection CreateArguments(params (string Name, string? Value)[] values) 4993private static InteractionInputCollection CloneInputs(IReadOnlyList<InteractionInput> inputs) 5013private static Task LoadInputAsync(IServiceProvider services, InteractionInputCollection inputs, InteractionInput input)
ProvisioningContextProviderTests.cs (6)
467inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 655inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 698inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 755inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 799inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>()); 844inputsInteraction.CompletionTcs.SetResult(InteractionResult.Cancel<InteractionInputCollection>());
tests\Shared\TestInteractionService.cs (4)
19internal sealed record InteractionData(InteractionType Type, string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 54return InteractionResult.Cancel<InteractionInputCollection>();
Aspire.Hosting.Browsers (4)
BrowserLogsConfigurationManager.cs (4)
148public async Task<ExecuteCommandResult> ConfigureAsync(BrowserLogsResource resource, InteractionInputCollection arguments, CancellationToken _) 273var inputs = context.Inputs; 463public static BrowserLogsConfigurationSelection FromInputs(InteractionInputCollection inputs) 481private static bool IsSaveToUserSecretsRequested(InteractionInputCollection inputs)
Aspire.Hosting.Browsers.Tests (16)
BrowserLogsBuilderExtensionsTests.cs (8)
483var arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "Default", saveToUserSecrets: "true"); 526var arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "Default"); 566var arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Shared), "__aspire_browser_default__", saveToUserSecrets: "true"); 605var arguments = CreateConfigureArguments("global", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__", saveToUserSecrets: "true"); 650var arguments = CreateConfigureArguments("resource", "msedge", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__", saveToUserSecrets: "true"); 703var arguments = CreateConfigureArguments("global", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__"); 740var arguments = CreateConfigureArguments("resource", "chrome", nameof(BrowserUserDataMode.Isolated), "__aspire_browser_default__"); 1733private static InteractionInputCollection CreateConfigureArguments(string scope, string browser, string userDataMode, string profile, string? saveToUserSecrets = null)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (4)
148public async Task<ExecuteCommandResult> ConfigureAsync(BrowserLogsResource resource, InteractionInputCollection arguments, CancellationToken _) 273var inputs = context.Inputs; 463public static BrowserLogsConfigurationSelection FromInputs(InteractionInputCollection inputs) 481private static bool IsSaveToUserSecretsRequested(InteractionInputCollection inputs)
tests\Shared\TestInteractionService.cs (4)
19internal sealed record InteractionData(InteractionType Type, string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 54return InteractionResult.Cancel<InteractionInputCollection>();
Aspire.Hosting.DevTunnels.Tests (4)
tests\Shared\TestInteractionService.cs (4)
19internal sealed record InteractionData(InteractionType Type, string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 54return InteractionResult.Cancel<InteractionInputCollection>();
Aspire.Hosting.Foundry.Tests (2)
HostedAgentExtensionTests.cs (2)
108var arguments = new InteractionInputCollection( 173var arguments = new InteractionInputCollection(
Aspire.Hosting.RemoteHost.Tests (4)
tests\Shared\TestInteractionService.cs (4)
19internal sealed record InteractionData(InteractionType Type, string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 54return InteractionResult.Cancel<InteractionInputCollection>();
Aspire.Hosting.Tests (43)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2251InteractionInputCollection? capturedArguments = null; 2367InteractionInputCollection? capturedArguments = null; 2498InteractionInputCollection? capturedArguments = null;
Dashboard\DashboardServiceTests.cs (3)
280InteractionInputCollection? capturedArguments = null; 1099var resultInputs = Assert.IsType<InteractionInputCollection>(result.Data);
InteractionServiceTests.cs (7)
649var collection = new InteractionInputCollection(inputs); 689var collection = new InteractionInputCollection(inputs); 723var collection = new InteractionInputCollection(inputs); 776var collection = new InteractionInputCollection(inputs); 809var collection = new InteractionInputCollection(inputs); 842var collection = new InteractionInputCollection(inputs); 880var resultCollection = result.Data;
Orchestrator\ParameterProcessorTests.cs (7)
928var arguments = new InteractionInputCollection(setValueCommand.Arguments); 953var arguments = new InteractionInputCollection(setValueCommand.Arguments); 987var arguments = new InteractionInputCollection(setValueCommand.Arguments); 1025var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1057var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1233private static InteractionInputCollection CreateSetParameterArguments(string? value, string? saveToUserSecrets = null) 1251private static InteractionInputCollection CreateDeleteParameterArguments(string? deleteFromUserSecrets = null)
ResourceCommandServiceTests.cs (11)
514InteractionInputCollection? capturedArguments = null; 540var arguments = new InteractionInputCollection( 572InteractionInputCollection? capturedArguments = null; 613InteractionInputCollection? capturedArguments = null; 653InteractionInputCollection? capturedArguments = null; 675var arguments = new InteractionInputCollection( 912InteractionInputCollection? capturedArguments = null; 1145InteractionInputCollection? capturedArguments = null; 1265InteractionInputCollection? capturedArguments = null; 1321InteractionInputCollection? capturedArguments = null; 1533var arguments = new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (4)
19internal sealed record InteractionData(InteractionType Type, string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 54return InteractionResult.Cancel<InteractionInputCollection>();
WithHttpCommandTests.cs (5)
333InteractionInputCollection? prepareArguments = null; 377var arguments = new InteractionInputCollection( 741InteractionInputCollection? prepareArguments = null; 742InteractionInputCollection? resultArguments = null; 778var arguments = new InteractionInputCollection(
WithProcessCommandTests.cs (3)
180var arguments = new InteractionInputCollection( 259var arguments = new InteractionInputCollection( 374var arguments = new InteractionInputCollection(
Stress.AppHost (7)
CommandResources.cs (7)
123var arguments = c.Arguments; 344var arguments = c.Arguments; 371var arguments = c.Arguments; 1234private static EchoCommandArguments ReadEchoCommandArguments(InteractionInputCollection arguments) 1246private static string GetRequiredCommandArgument(InteractionInputCollection arguments, string name) 1251private static ValidateCommandArguments ReadValidateCommandArguments(InteractionInputCollection arguments) 1262private static LargeTelemetryCommandOptions ReadLargeTelemetryGenerationOptions(InteractionInputCollection arguments)