147 references to new
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)
165var inputCollection = new InteractionInputCollection(inputs); 259return InteractionResult.Ok(new InteractionInputCollection(inputState));
ResourceBuilderExtensions.cs (1)
3377_ = new InteractionInputCollection(arguments);
Aspire.Hosting.Azure.Tests (58)
AzureEnvironmentResourceExtensionsTests.cs (52)
359Arguments = new InteractionInputCollection([]) 413Arguments = new InteractionInputCollection([]) 832Arguments = new InteractionInputCollection([]) 916Arguments = new InteractionInputCollection([]) 1185Arguments = new InteractionInputCollection([]) 1249Arguments = new InteractionInputCollection([]) 1310Arguments = new InteractionInputCollection([]) 1371Arguments = new InteractionInputCollection([]) 1506Arguments = new InteractionInputCollection([]) 1564Arguments = new InteractionInputCollection([]) 1615Arguments = new InteractionInputCollection([]) 1627Arguments = new InteractionInputCollection([]) 1711Arguments = new InteractionInputCollection([]) 1795Arguments = new InteractionInputCollection([]) 1889Arguments = new InteractionInputCollection([]) 1960Arguments = new InteractionInputCollection([]) 2038Arguments = new InteractionInputCollection([]) 2052Arguments = new InteractionInputCollection([]) 2117Arguments = new InteractionInputCollection([]) 2181Arguments = new InteractionInputCollection([]) 2235Arguments = new InteractionInputCollection([]) 2295Arguments = new InteractionInputCollection([]) 2372Arguments = new InteractionInputCollection([]) 2386Arguments = new InteractionInputCollection([]) 2449Arguments = new InteractionInputCollection([]) 2466Arguments = new InteractionInputCollection([]) 2547Arguments = new InteractionInputCollection([]) 2593Arguments = new InteractionInputCollection([]) 2646Arguments = new InteractionInputCollection([]) 2660Arguments = new InteractionInputCollection([]) 2786Arguments = new InteractionInputCollection([]) 2960Arguments = new InteractionInputCollection([]) 3091Arguments = new InteractionInputCollection([]) 3217Arguments = new InteractionInputCollection([]) 3280Arguments = new InteractionInputCollection([]) 3406Arguments = new InteractionInputCollection([]) 3771Arguments = new InteractionInputCollection([]) 3850Arguments = new InteractionInputCollection([]) 3922Arguments = new InteractionInputCollection([]) 4002Arguments = new InteractionInputCollection([]) 4076Arguments = new InteractionInputCollection([]) 4128Arguments = new InteractionInputCollection([]) 4176: new InteractionInputCollection([]) 4220Arguments = new InteractionInputCollection([]) 4288Arguments = new InteractionInputCollection([]) 4527Arguments = new InteractionInputCollection([]) 4579Arguments = new InteractionInputCollection([]) 4626Arguments = new InteractionInputCollection([]) 4674Arguments = new InteractionInputCollection([]) 4812Arguments = new InteractionInputCollection([]) 4994return new InteractionInputCollection([.. values.Select(static value => new InteractionInput 5004return new InteractionInputCollection([.. inputs.Select(static input => new InteractionInput
tests\Shared\TestInteractionService.cs (6)
45var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 53var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 63return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 68var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 75var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
328Arguments = new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
326Arguments = new InteractionInputCollection([])
Aspire.Hosting.Browsers.Tests (11)
BrowserLogsBuilderExtensionsTests.cs (5)
108AllInputs = new InteractionInputCollection(arguments), 115AllInputs = new InteractionInputCollection(arguments), 122AllInputs = new InteractionInputCollection(arguments), 161AllInputs = new InteractionInputCollection(arguments), 1734return new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (6)
45var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 53var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 63return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 68var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 75var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.DevTunnels.Tests (9)
DevTunnelResourceBuilderExtensionsTests.cs (3)
575Arguments = new InteractionInputCollection([]), 627Arguments = new InteractionInputCollection([]), 675Arguments = new InteractionInputCollection([]),
tests\Shared\TestInteractionService.cs (6)
45var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 53var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 63return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 68var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 75var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (2)
109var arguments = new InteractionInputCollection( 174var arguments = new InteractionInputCollection(
PromptAgentTests.cs (1)
103Arguments = new InteractionInputCollection(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1156Arguments = new InteractionInputCollection([])
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.RemoteHost.Tests (6)
tests\Shared\TestInteractionService.cs (6)
45var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 53var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 63return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 68var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 75var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 108var 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)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Tests (31)
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)
926var arguments = new InteractionInputCollection(setValueCommand.Arguments); 951var arguments = new InteractionInputCollection(setValueCommand.Arguments); 985var arguments = new InteractionInputCollection(setValueCommand.Arguments); 1023var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1055var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1233return new InteractionInputCollection([ 1251return new InteractionInputCollection([ 1545var result = await parameterProcessor.DeleteParameterCoreAsync(parameter, new InteractionInputCollection([]), CancellationToken.None).DefaultTimeout();
ResourceCommandAnnotationTests.cs (1)
203Arguments = new InteractionInputCollection([]),
ResourceCommandServiceTests.cs (3)
541var arguments = new InteractionInputCollection( 676var arguments = new InteractionInputCollection( 1636var arguments = new InteractionInputCollection(
tests\Shared\TestInteractionService.cs (6)
45var data = new InteractionData(InteractionType.Input, title, message, new InteractionInputCollection([input]), options, cancellationToken, new TaskCompletionSource<object>()); 53var data = new InteractionData(InteractionType.Inputs, title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 63return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 68var data = new InteractionData(InteractionType.Notification, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 75var data = new InteractionData(InteractionType.MessageBox, title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>()); 108var data = new InteractionData(type, 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(
Aspire.Hosting.TestUtilities (1)
Utils\TerminalCommandTestHelpers.cs (1)
27Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),