70 writes to Arguments
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (2)
372Arguments = arguments 446Arguments = context.Arguments
Aspire.Hosting.Azure.Tests (61)
AzureEnvironmentResourceExtensionsTests.cs (61)
362Arguments = new InteractionInputCollection([]) 416Arguments = new InteractionInputCollection([]) 754Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 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([]) 2716Arguments = CreateArguments(("location", "westus2")) 2789Arguments = new InteractionInputCollection([]) 2842Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 2902Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3")) 2963Arguments = new InteractionInputCollection([]) 3033Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3094Arguments = new InteractionInputCollection([]) 3163Arguments = CreateArguments( 3220Arguments = new InteractionInputCollection([]) 3283Arguments = new InteractionInputCollection([]) 3354Arguments = CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3")) 3409Arguments = new InteractionInputCollection([]) 3449Arguments = CreateArguments( 3523Arguments = CreateArguments( 3571Arguments = CreateArguments( 3627Arguments = CreateArguments( 3774Arguments = new InteractionInputCollection([]) 3853Arguments = new InteractionInputCollection([]) 3925Arguments = new InteractionInputCollection([]) 4005Arguments = new InteractionInputCollection([]) 4079Arguments = new InteractionInputCollection([]) 4131Arguments = new InteractionInputCollection([]) 4177Arguments = includeLocationArgument 4223Arguments = new InteractionInputCollection([]) 4291Arguments = new InteractionInputCollection([]) 4530Arguments = new InteractionInputCollection([]) 4582Arguments = new InteractionInputCollection([]) 4629Arguments = new InteractionInputCollection([]) 4677Arguments = new InteractionInputCollection([]) 4815Arguments = new InteractionInputCollection([])
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
253Arguments = new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
326Arguments = new InteractionInputCollection([])
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
471Arguments = new InteractionInputCollection([]), 523Arguments = new InteractionInputCollection([]), 571Arguments = new InteractionInputCollection([]),
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
105Arguments = new InteractionInputCollection(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
782Arguments = new InteractionInputCollection([])
53 references to Arguments
Aspire.Hosting (8)
ApplicationModel\ResourceCommandService.cs (1)
446Arguments = context.Arguments
Orchestrator\ParameterProcessor.cs (2)
267executeCommand: context => SetParameterCoreAsync(parameterResource, context.Arguments, context.CancellationToken), 303executeCommand: context => DeleteParameterCoreAsync(parameterResource, context.Arguments, context.CancellationToken),
ResourceBuilderExtensions.cs (5)
3091/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3150/// Use <see cref="ExecuteCommandContext.Arguments"/> to read values supplied by the command caller. 3471Arguments = context.Arguments, 3734Arguments = context.Arguments, 3752Arguments = context.Arguments,
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (2)
751() => ChangeAzureContextCommandAsync(model, context.Arguments, context.CancellationToken), 790() => 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)
916var migrationName = context.Arguments.GetString("name")!;
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
82var message = ctx.Arguments.GetString("message")!;
Aspire.Hosting.Tests (19)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2258capturedArguments = context.Arguments; 2374capturedArguments = context.Arguments; 2505capturedArguments = context.Arguments;
Dashboard\DashboardServiceTests.cs (1)
289capturedArguments = c.Arguments;
ResourceCommandServiceTests.cs (8)
520capturedArguments = e.Arguments; 578capturedArguments = e.Arguments; 619capturedArguments = e.Arguments; 659capturedArguments = e.Arguments; 918capturedArguments = e.Arguments; 1151capturedArguments = context.Arguments; 1271capturedArguments = e.Arguments; 1328capturedArguments = 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")