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([]) 1097Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 1178Arguments = new InteractionInputCollection([]) 1262Arguments = new InteractionInputCollection([]) 1531Arguments = new InteractionInputCollection([]) 1595Arguments = new InteractionInputCollection([]) 1656Arguments = new InteractionInputCollection([]) 1717Arguments = new InteractionInputCollection([]) 1852Arguments = new InteractionInputCollection([]) 1910Arguments = new InteractionInputCollection([]) 1961Arguments = new InteractionInputCollection([]) 1973Arguments = new InteractionInputCollection([]) 2057Arguments = new InteractionInputCollection([]) 2141Arguments = new InteractionInputCollection([]) 2235Arguments = new InteractionInputCollection([]) 2306Arguments = new InteractionInputCollection([]) 2384Arguments = new InteractionInputCollection([]) 2398Arguments = new InteractionInputCollection([]) 2463Arguments = new InteractionInputCollection([]) 2527Arguments = new InteractionInputCollection([]) 2581Arguments = new InteractionInputCollection([]) 2641Arguments = new InteractionInputCollection([]) 2718Arguments = new InteractionInputCollection([]) 2732Arguments = new InteractionInputCollection([]) 2795Arguments = new InteractionInputCollection([]) 2812Arguments = new InteractionInputCollection([]) 2893Arguments = new InteractionInputCollection([]) 2939Arguments = new InteractionInputCollection([]) 2992Arguments = new InteractionInputCollection([]) 3006Arguments = new InteractionInputCollection([]) 3059Arguments = CreateArguments(("location", "westus2")) 3132Arguments = new InteractionInputCollection([]) 3185Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3245Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3306Arguments = new InteractionInputCollection([]) 3376Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3437Arguments = new InteractionInputCollection([]) 3506Arguments = CreateArguments( 3563Arguments = new InteractionInputCollection([]) 3626Arguments = new InteractionInputCollection([]) 3697Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3752Arguments = new InteractionInputCollection([]) 3792Arguments = CreateArguments( 3866Arguments = CreateArguments( 3914Arguments = CreateArguments( 3970Arguments = CreateArguments( 4117Arguments = new InteractionInputCollection([]) 4196Arguments = new InteractionInputCollection([]) 4268Arguments = new InteractionInputCollection([]) 4348Arguments = new InteractionInputCollection([]) 4422Arguments = new InteractionInputCollection([]) 4474Arguments = new InteractionInputCollection([]) 4520Arguments = includeLocationArgument 4566Arguments = new InteractionInputCollection([]) 4634Arguments = new InteractionInputCollection([]) 4873Arguments = new InteractionInputCollection([]) 4925Arguments = new InteractionInputCollection([]) 4972Arguments = new InteractionInputCollection([]) 5020Arguments = new InteractionInputCollection([]) 5158Arguments = new InteractionInputCollection([])
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
309Arguments = new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
327Arguments = new InteractionInputCollection([])
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
612Arguments = new InteractionInputCollection([]), 666Arguments = new InteractionInputCollection([]), 716Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
193Arguments = new InteractionInputCollection(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1179Arguments = new InteractionInputCollection([])
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Arguments = new InteractionInputCollection([]), 112Arguments = new InteractionInputCollection([]),
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Arguments = new InteractionInputCollection([]), 112Arguments = new InteractionInputCollection([]),
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Arguments = new InteractionInputCollection([]), 112Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Arguments = new InteractionInputCollection([]), 112Arguments = new InteractionInputCollection([]),
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89Arguments = new InteractionInputCollection([]), 112Arguments = 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)
89Arguments = new InteractionInputCollection([]), 112Arguments = 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)
3482/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3541/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3862Arguments = context.Arguments, 4125Arguments = context.Arguments, 4143Arguments = 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)
995var 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)
2305capturedArguments = context.Arguments; 2421capturedArguments = context.Arguments; 2552capturedArguments = context.Arguments;
Dashboard\DashboardServiceTests.cs (1)
294capturedArguments = c.Arguments;
ResourceCommandServiceTests.cs (9)
522capturedArguments = e.Arguments; 580capturedArguments = e.Arguments; 621capturedArguments = e.Arguments; 661capturedArguments = e.Arguments; 920capturedArguments = e.Arguments; 1153capturedArguments = context.Arguments; 1273capturedArguments = e.Arguments; 1351capturedArguments = context.Arguments; 1433capturedArguments = 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)
124var arguments = c.Arguments; 174var arguments = ReadEchoCommandArguments(c.Arguments); 259var arguments = ReadValidateCommandArguments(c.Arguments); 345var arguments = c.Arguments; 372var arguments = c.Arguments; 531var command = context.Arguments.GetString("command") switch 569standardInputContent: context.Arguments.GetString("input") ?? "Hello from stdin"), 642arguments: [context.Arguments.GetString("name") ?? "Aspire"], 643standardInputContent: context.Arguments.GetString("input") ?? "Hello from C#"), 691context.Arguments.GetString("dataset") ?? "small", 692context.Arguments.GetString("customers") ?? "25" 738context.Arguments.GetString("filter") ?? "smoke" 776context.Arguments.GetString("job") ?? "daily-import" 778standardInputContent: context.Arguments.GetString("payload") ?? "local-trigger"), 813context.Arguments.GetString("backupPath") ?? processCommandSampleBackupPath, 814context.Arguments.GetString("container") ?? "db-server", 815context.Arguments.GetString("database") ?? "mainDb" 860GetRequiredCommandArgument(context.Arguments, "container"), 861GetRequiredCommandArgument(context.Arguments, "execCommand"), 862GetRequiredCommandArgument(context.Arguments, "workingDirectory")