87 writes to Arguments
Aspire.Hosting (2)
ApplicationModel\ResourceCommandService.cs (2)
372
Arguments
= arguments
446
Arguments
= context.Arguments
Aspire.Hosting.Azure.Tests (64)
AzureEnvironmentResourceExtensionsTests.cs (64)
114
Arguments
= new InteractionInputCollection([])
186
Arguments
= new InteractionInputCollection([])
311
Arguments
= new InteractionInputCollection([
659
Arguments
= new InteractionInputCollection([])
713
Arguments
= new InteractionInputCollection([])
1098
Arguments
= CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3"))
1179
Arguments
= new InteractionInputCollection([])
1263
Arguments
= new InteractionInputCollection([])
1532
Arguments
= new InteractionInputCollection([])
1596
Arguments
= new InteractionInputCollection([])
1657
Arguments
= new InteractionInputCollection([])
1718
Arguments
= new InteractionInputCollection([])
1853
Arguments
= new InteractionInputCollection([])
1911
Arguments
= new InteractionInputCollection([])
1962
Arguments
= new InteractionInputCollection([])
1974
Arguments
= new InteractionInputCollection([])
2058
Arguments
= new InteractionInputCollection([])
2142
Arguments
= new InteractionInputCollection([])
2236
Arguments
= new InteractionInputCollection([])
2307
Arguments
= new InteractionInputCollection([])
2385
Arguments
= new InteractionInputCollection([])
2399
Arguments
= new InteractionInputCollection([])
2464
Arguments
= new InteractionInputCollection([])
2528
Arguments
= new InteractionInputCollection([])
2582
Arguments
= new InteractionInputCollection([])
2642
Arguments
= new InteractionInputCollection([])
2719
Arguments
= new InteractionInputCollection([])
2733
Arguments
= new InteractionInputCollection([])
2796
Arguments
= new InteractionInputCollection([])
2813
Arguments
= new InteractionInputCollection([])
2894
Arguments
= new InteractionInputCollection([])
2940
Arguments
= new InteractionInputCollection([])
2993
Arguments
= new InteractionInputCollection([])
3007
Arguments
= new InteractionInputCollection([])
3060
Arguments
= CreateArguments(("location", "westus2"))
3133
Arguments
= new InteractionInputCollection([])
3186
Arguments
= CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3"))
3246
Arguments
= CreateArguments((AzureBicepResource.KnownParameters.Location, "West US 3"))
3307
Arguments
= new InteractionInputCollection([])
3377
Arguments
= CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3"))
3438
Arguments
= new InteractionInputCollection([])
3507
Arguments
= CreateArguments(
3564
Arguments
= new InteractionInputCollection([])
3627
Arguments
= new InteractionInputCollection([])
3698
Arguments
= CreateArguments((AzureBicepResource.KnownParameters.Location, "westus3"))
3753
Arguments
= new InteractionInputCollection([])
3793
Arguments
= CreateArguments(
3867
Arguments
= CreateArguments(
3915
Arguments
= CreateArguments(
3971
Arguments
= CreateArguments(
4118
Arguments
= new InteractionInputCollection([])
4197
Arguments
= new InteractionInputCollection([])
4269
Arguments
= new InteractionInputCollection([])
4349
Arguments
= new InteractionInputCollection([])
4423
Arguments
= new InteractionInputCollection([])
4475
Arguments
= new InteractionInputCollection([])
4521
Arguments
= includeLocationArgument
4567
Arguments
= new InteractionInputCollection([])
4635
Arguments
= new InteractionInputCollection([])
4874
Arguments
= new InteractionInputCollection([])
4926
Arguments
= new InteractionInputCollection([])
4973
Arguments
= new InteractionInputCollection([])
5021
Arguments
= new InteractionInputCollection([])
5159
Arguments
= new InteractionInputCollection([])
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
309
Arguments
= new InteractionInputCollection([])
WithBlazorAppTests.cs (1)
327
Arguments
= new InteractionInputCollection([])
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
611
Arguments
= new InteractionInputCollection([]),
665
Arguments
= new InteractionInputCollection([]),
715
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
198
Arguments
= new InteractionInputCollection(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1179
Arguments
= new InteractionInputCollection([])
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.Tests (1)
ResourceCommandAnnotationTests.cs (1)
206
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.TestUtilities (1)
Utils\TerminalCommandTestHelpers.cs (1)
27
Arguments
= new InteractionInputCollection([]),
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
89
Arguments
= new InteractionInputCollection([]),
112
Arguments
= new InteractionInputCollection([]),
54 references to Arguments
Aspire.Hosting (8)
ApplicationModel\ResourceCommandService.cs (1)
446
Arguments = context.
Arguments
Orchestrator\ParameterProcessor.cs (2)
374
executeCommand: context => SetParameterCoreAsync(parameterResource, context.
Arguments
, context.CancellationToken),
410
executeCommand: 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.
3855
Arguments = context.
Arguments
,
4118
Arguments = context.
Arguments
,
4136
Arguments = 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)
206
return await configurationManager.ConfigureAsync(browserLogsResource, context.
Arguments
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
206
return await configurationManager.ConfigureAsync(browserLogsResource, context.
Arguments
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
995
var migrationName = context.
Arguments
.GetString("name")!;
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
82
var message = ctx.
Arguments
.GetString("message")!;
Aspire.Hosting.Tests (20)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
2355
capturedArguments = context.
Arguments
;
2471
capturedArguments = context.
Arguments
;
2602
capturedArguments = context.
Arguments
;
Dashboard\DashboardServiceTests.cs (1)
294
capturedArguments = c.
Arguments
;
ResourceCommandServiceTests.cs (9)
522
capturedArguments = e.
Arguments
;
580
capturedArguments = e.
Arguments
;
621
capturedArguments = e.
Arguments
;
661
capturedArguments = e.
Arguments
;
920
capturedArguments = e.
Arguments
;
1153
capturedArguments = context.
Arguments
;
1273
capturedArguments = e.
Arguments
;
1351
capturedArguments = context.
Arguments
;
1433
capturedArguments = context.
Arguments
;
WithProcessCommandTests.cs (7)
156
var message = context.
Arguments
.GetString("message") ?? string.Empty;
195
Assert.Equal("hello-from-options-callback", capturedContext.
Arguments
.GetString("message"));
217
var message = context.
Arguments
.GetString("message") ?? string.Empty;
277
Assert.Equal("hello-from-factory", capturedContext.
Arguments
.GetString("message"));
356
var message = context.
Arguments
.GetString("message");
392
Assert.Equal("hello-from-argument", capturedContext.
Arguments
.GetString("message"));
413
var message = context.
Arguments
.GetString("message");
Stress.AppHost (20)
CommandResources.cs (20)
124
var arguments = c.
Arguments
;
174
var arguments = ReadEchoCommandArguments(c.
Arguments
);
259
var arguments = ReadValidateCommandArguments(c.
Arguments
);
345
var arguments = c.
Arguments
;
372
var arguments = c.
Arguments
;
531
var command = context.
Arguments
.GetString("command") switch
569
standardInputContent: context.
Arguments
.GetString("input") ?? "Hello from stdin"),
642
arguments: [context.
Arguments
.GetString("name") ?? "Aspire"],
643
standardInputContent: context.
Arguments
.GetString("input") ?? "Hello from C#"),
691
context.
Arguments
.GetString("dataset") ?? "small",
692
context.
Arguments
.GetString("customers") ?? "25"
738
context.
Arguments
.GetString("filter") ?? "smoke"
776
context.
Arguments
.GetString("job") ?? "daily-import"
778
standardInputContent: context.
Arguments
.GetString("payload") ?? "local-trigger"),
813
context.
Arguments
.GetString("backupPath") ?? processCommandSampleBackupPath,
814
context.
Arguments
.GetString("container") ?? "db-server",
815
context.
Arguments
.GetString("database") ?? "mainDb"
860
GetRequiredCommandArgument(context.
Arguments
, "container"),
861
GetRequiredCommandArgument(context.
Arguments
, "execCommand"),
862
GetRequiredCommandArgument(context.
Arguments
, "workingDirectory")