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