1 write to Arguments
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
83
Arguments
= arguments ?? [];
39 references to Arguments
Aspire.Hosting (16)
ApplicationModel\ResourceCommandAnnotation.cs (1)
481
/// The collection contains the arguments described by <see cref="ResourceCommandAnnotation.
Arguments
"/> with their
ApplicationModel\ResourceCommandService.cs (14)
246
var disabledArgumentNames = annotation.
Arguments
252
return (CreateArguments(annotation.
Arguments
, argumentValues), CreateDisabledArgumentMessage(resolvedCommandName, disabledArgumentNames));
256
annotation.
Arguments
.Select(argument => argument.Name),
264
return (CreateArguments(annotation.
Arguments
, argumentValues), CreateUnknownArgumentMessage(resolvedCommandName, unknownArgumentNames));
268
return (CreateArguments(annotation.
Arguments
, argumentValues), null);
285
if (orderedArgumentValues is { Count: var argumentCount } && argumentCount > annotation.
Arguments
.Count)
287
return (CreateArguments(annotation.
Arguments
, orderedArgumentValues: null), $"Command '{resolvedCommandName}' accepts {annotation.
Arguments
.Count} argument(s), but {argumentCount} were provided.");
292
var disabledArgumentNames = annotation.
Arguments
299
return (CreateArguments(annotation.
Arguments
, orderedArgumentValues), CreateDisabledArgumentMessage(resolvedCommandName, disabledArgumentNames));
303
return (CreateArguments(annotation.
Arguments
, orderedArgumentValues), null);
341
if (!nonInteractive && !argumentsProvided && annotation.
Arguments
.Count > 0)
774
if (annotation.
Arguments
.Count == 0)
779
return CreateArguments(annotation.
Arguments
, CreateArgumentValues(arguments));
ApplicationModel\ResourceNotificationService.cs (1)
1197
Arguments = annotation.
Arguments
,
Aspire.Hosting.Azure.Tests (8)
AzureEnvironmentResourceExtensionsTests.cs (8)
274
Assert.Equal(tenantScoped && !excluded ? 5 : 4, command.
Arguments
.Count);
277
var inputs = CloneInputs(command.
Arguments
);
420
Assert.Collection(changeContextCommand.
Arguments
,
482
var inputs = CloneInputs(changeContextCommand.
Arguments
);
539
var inputs = CloneInputs(changeContextCommand.
Arguments
);
583
var inputs = CloneInputs(changeContextCommand.
Arguments
);
979
changeLocationCommand.
Arguments
,
3268
var commandInputs = CloneInputs(changeLocationCommand.
Arguments
);
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (3)
100
var arguments = configureCommand.
Arguments
;
155
var arguments = configureCommand.
Arguments
;
191
var arguments = configureCommand.
Arguments
;
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationCommandsTests.cs (1)
70
var nameArgument = Assert.Single(addCommand.
Arguments
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
90
var argument = Assert.Single(command.
Arguments
);
Aspire.Hosting.Tests (10)
Orchestrator\ParameterProcessorTests.cs (7)
1060
setValueCommand.
Arguments
,
1071
var saveToUserSecretsInput = setValueCommand.
Arguments
.Single(argument => argument.Name == ParameterProcessor.SaveToUserSecretsName);
1089
var arguments = new InteractionInputCollection(setValueCommand.
Arguments
);
1114
var arguments = new InteractionInputCollection(setValueCommand.
Arguments
);
1148
var arguments = new InteractionInputCollection(setValueCommand.
Arguments
);
1186
var arguments = new InteractionInputCollection(deleteCommand.
Arguments
);
1218
var arguments = new InteractionInputCollection(deleteCommand.
Arguments
);
WithHttpCommandTests.cs (1)
280
var argument = Assert.Single(command.
Arguments
);
WithProcessCommandTests.cs (2)
80
var argument = Assert.Single(command.
Arguments
);
253
var argument = Assert.Single(command.
Arguments
);