87 writes to Arguments
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (2)
372Arguments = arguments 446Arguments = context.Arguments
Aspire.Hosting.Azure.Tests (64)
AzureEnvironmentResourceExtensionsTests.cs (64)
113Arguments = new InteractionInputCollection([]) 185Arguments = new InteractionInputCollection([]) 310Arguments = new InteractionInputCollection([ 658Arguments = new InteractionInputCollection([]) 712Arguments = new InteractionInputCollection([]) 1072Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 1153Arguments = new InteractionInputCollection([]) 1237Arguments = new InteractionInputCollection([]) 1506Arguments = new InteractionInputCollection([]) 1570Arguments = new InteractionInputCollection([]) 1631Arguments = new InteractionInputCollection([]) 1692Arguments = new InteractionInputCollection([]) 1827Arguments = new InteractionInputCollection([]) 1885Arguments = new InteractionInputCollection([]) 1936Arguments = new InteractionInputCollection([]) 1948Arguments = new InteractionInputCollection([]) 2032Arguments = new InteractionInputCollection([]) 2116Arguments = new InteractionInputCollection([]) 2210Arguments = new InteractionInputCollection([]) 2281Arguments = new InteractionInputCollection([]) 2359Arguments = new InteractionInputCollection([]) 2373Arguments = new InteractionInputCollection([]) 2438Arguments = new InteractionInputCollection([]) 2502Arguments = new InteractionInputCollection([]) 2556Arguments = new InteractionInputCollection([]) 2616Arguments = new InteractionInputCollection([]) 2693Arguments = new InteractionInputCollection([]) 2707Arguments = new InteractionInputCollection([]) 2770Arguments = new InteractionInputCollection([]) 2787Arguments = new InteractionInputCollection([]) 2868Arguments = new InteractionInputCollection([]) 2914Arguments = new InteractionInputCollection([]) 2967Arguments = new InteractionInputCollection([]) 2981Arguments = new InteractionInputCollection([]) 3034Arguments = CreateArguments(("location", "westus2")) 3107Arguments = new InteractionInputCollection([]) 3160Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3220Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3281Arguments = new InteractionInputCollection([]) 3351Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3412Arguments = new InteractionInputCollection([]) 3481Arguments = CreateArguments( 3538Arguments = new InteractionInputCollection([]) 3601Arguments = new InteractionInputCollection([]) 3672Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3727Arguments = new InteractionInputCollection([]) 3767Arguments = CreateArguments( 3841Arguments = CreateArguments( 3889Arguments = CreateArguments( 3945Arguments = CreateArguments( 4092Arguments = new InteractionInputCollection([]) 4171Arguments = new InteractionInputCollection([]) 4243Arguments = new InteractionInputCollection([]) 4323Arguments = new InteractionInputCollection([]) 4397Arguments = new InteractionInputCollection([]) 4449Arguments = new InteractionInputCollection([]) 4495Arguments = includeLocationArgument 4541Arguments = new InteractionInputCollection([]) 4609Arguments = new InteractionInputCollection([]) 4848Arguments = new InteractionInputCollection([]) 4900Arguments = new InteractionInputCollection([]) 4947Arguments = new InteractionInputCollection([]) 4995Arguments = new InteractionInputCollection([]) 5133Arguments = new InteractionInputCollection([])
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
328Arguments = new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
326Arguments = new InteractionInputCollection([])
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
575Arguments = new InteractionInputCollection([]), 627Arguments = new InteractionInputCollection([]), 675Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
193Arguments = 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.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
88Arguments = new InteractionInputCollection([]), 111Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Tests (1)
ResourceCommandAnnotationTests.cs (1)
203Arguments = 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([]),
54 references to Arguments
Aspire.Hosting (8)
ApplicationModel\ResourceCommandService.cs (1)
446Arguments = context.Arguments
Orchestrator\ParameterProcessor.cs (2)
374executeCommand: context => SetParameterCoreAsync(parameterResource, context.Arguments, context.CancellationToken), 410executeCommand: context => DeleteParameterCoreAsync(parameterResource, context.Arguments, context.CancellationToken),
ResourceBuilderExtensions.cs (5)
3462/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3521/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3842Arguments = context.Arguments, 4105Arguments = context.Arguments, 4123Arguments = context.Arguments,
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (2)
774() => ChangeAzureContextCommandAsync(model, context.Arguments, context.CancellationToken), 817() => ChangeResourceLocationCommandAsync(model, resourceName, context.Arguments, context.CancellationToken),
Aspire.Hosting.Browsers (1)
BrowserLogsBuilderExtensions.cs (1)
206return await configurationManager.ConfigureAsync(browserLogsResource, context.Arguments, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
206return await configurationManager.ConfigureAsync(browserLogsResource, context.Arguments, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
1000var migrationName = context.Arguments.GetString("name")!;
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
82var message = ctx.Arguments.GetString("message")!;
Aspire.Hosting.Tests (20)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2258capturedArguments = context.Arguments; 2374capturedArguments = context.Arguments; 2505capturedArguments = context.Arguments;
Dashboard\DashboardServiceTests.cs (1)
294capturedArguments = c.Arguments;
ResourceCommandServiceTests.cs (9)
521capturedArguments = e.Arguments; 579capturedArguments = e.Arguments; 620capturedArguments = e.Arguments; 660capturedArguments = e.Arguments; 919capturedArguments = e.Arguments; 1152capturedArguments = context.Arguments; 1272capturedArguments = e.Arguments; 1349capturedArguments = context.Arguments; 1431capturedArguments = context.Arguments;
WithProcessCommandTests.cs (7)
156var message = context.Arguments.GetString("message") ?? string.Empty; 195Assert.Equal("hello-from-options-callback", capturedContext.Arguments.GetString("message")); 217var message = context.Arguments.GetString("message") ?? string.Empty; 277Assert.Equal("hello-from-factory", capturedContext.Arguments.GetString("message")); 356var message = context.Arguments.GetString("message"); 392Assert.Equal("hello-from-argument", capturedContext.Arguments.GetString("message")); 413var message = context.Arguments.GetString("message");
Stress.AppHost (20)
CommandResources.cs (20)
123var arguments = c.Arguments; 173var arguments = ReadEchoCommandArguments(c.Arguments); 258var arguments = ReadValidateCommandArguments(c.Arguments); 344var arguments = c.Arguments; 371var arguments = c.Arguments; 530var command = context.Arguments.GetString("command") switch 568standardInputContent: context.Arguments.GetString("input") ?? "Hello from stdin"), 641arguments: [context.Arguments.GetString("name") ?? "Aspire"], 642standardInputContent: context.Arguments.GetString("input") ?? "Hello from C#"), 690context.Arguments.GetString("dataset") ?? "small", 691context.Arguments.GetString("customers") ?? "25" 737context.Arguments.GetString("filter") ?? "smoke" 775context.Arguments.GetString("job") ?? "daily-import" 777standardInputContent: context.Arguments.GetString("payload") ?? "local-trigger"), 812context.Arguments.GetString("backupPath") ?? processCommandSampleBackupPath, 813context.Arguments.GetString("container") ?? "db-server", 814context.Arguments.GetString("database") ?? "mainDb" 859GetRequiredCommandArgument(context.Arguments, "container"), 860GetRequiredCommandArgument(context.Arguments, "execCommand"), 861GetRequiredCommandArgument(context.Arguments, "workingDirectory")