87 writes to Arguments
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (2)
372Arguments = arguments 446Arguments = context.Arguments
Aspire.Hosting.Azure.Tests (64)
AzureEnvironmentResourceExtensionsTests.cs (64)
114Arguments = new InteractionInputCollection([]) 186Arguments = new InteractionInputCollection([]) 311Arguments = new InteractionInputCollection([ 659Arguments = new InteractionInputCollection([]) 713Arguments = new InteractionInputCollection([]) 1098Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 1179Arguments = new InteractionInputCollection([]) 1263Arguments = new InteractionInputCollection([]) 1532Arguments = new InteractionInputCollection([]) 1596Arguments = new InteractionInputCollection([]) 1657Arguments = new InteractionInputCollection([]) 1718Arguments = new InteractionInputCollection([]) 1853Arguments = new InteractionInputCollection([]) 1911Arguments = new InteractionInputCollection([]) 1962Arguments = new InteractionInputCollection([]) 1974Arguments = new InteractionInputCollection([]) 2058Arguments = new InteractionInputCollection([]) 2142Arguments = new InteractionInputCollection([]) 2236Arguments = new InteractionInputCollection([]) 2307Arguments = new InteractionInputCollection([]) 2385Arguments = new InteractionInputCollection([]) 2399Arguments = new InteractionInputCollection([]) 2464Arguments = new InteractionInputCollection([]) 2528Arguments = new InteractionInputCollection([]) 2582Arguments = new InteractionInputCollection([]) 2642Arguments = new InteractionInputCollection([]) 2719Arguments = new InteractionInputCollection([]) 2733Arguments = new InteractionInputCollection([]) 2796Arguments = new InteractionInputCollection([]) 2813Arguments = new InteractionInputCollection([]) 2894Arguments = new InteractionInputCollection([]) 2940Arguments = new InteractionInputCollection([]) 2993Arguments = new InteractionInputCollection([]) 3007Arguments = new InteractionInputCollection([]) 3060Arguments = CreateArguments(("location", "westus2")) 3133Arguments = new InteractionInputCollection([]) 3186Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3246Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 3307Arguments = new InteractionInputCollection([]) 3377Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3438Arguments = new InteractionInputCollection([]) 3507Arguments = CreateArguments( 3564Arguments = new InteractionInputCollection([]) 3627Arguments = new InteractionInputCollection([]) 3698Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3753Arguments = new InteractionInputCollection([]) 3793Arguments = CreateArguments( 3867Arguments = CreateArguments( 3915Arguments = CreateArguments( 3971Arguments = CreateArguments( 4118Arguments = new InteractionInputCollection([]) 4197Arguments = new InteractionInputCollection([]) 4269Arguments = new InteractionInputCollection([]) 4349Arguments = new InteractionInputCollection([]) 4423Arguments = new InteractionInputCollection([]) 4475Arguments = new InteractionInputCollection([]) 4521Arguments = includeLocationArgument 4567Arguments = new InteractionInputCollection([]) 4635Arguments = new InteractionInputCollection([]) 4874Arguments = new InteractionInputCollection([]) 4926Arguments = new InteractionInputCollection([]) 4973Arguments = new InteractionInputCollection([]) 5021Arguments = new InteractionInputCollection([]) 5159Arguments = 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)
611Arguments = new InteractionInputCollection([]), 665Arguments = new InteractionInputCollection([]), 715Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
198Arguments = 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)
206Arguments = 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)
3475/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3534/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3855Arguments = context.Arguments, 4118Arguments = context.Arguments, 4136Arguments = 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)
2355capturedArguments = context.Arguments; 2471capturedArguments = context.Arguments; 2602capturedArguments = 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")