1 write to Arguments
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
83Arguments = arguments ?? [];
37 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)
1160Arguments = annotation.Arguments,
Aspire.Hosting.Azure.Tests (6)
AzureEnvironmentResourceExtensionsTests.cs (6)
124Assert.Collection(changeContextCommand.Arguments, 186var inputs = CloneInputs(changeContextCommand.Arguments); 243var inputs = CloneInputs(changeContextCommand.Arguments); 287var inputs = CloneInputs(changeContextCommand.Arguments); 661changeLocationCommand.Arguments, 2950var commandInputs = CloneInputs(changeLocationCommand.Arguments);
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (3)
101var arguments = configureCommand.Arguments; 156var arguments = configureCommand.Arguments; 192var 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)
87var argument = Assert.Single(command.Arguments);
Aspire.Hosting.Tests (10)
Orchestrator\ParameterProcessorTests.cs (7)
899setValueCommand.Arguments, 910var saveToUserSecretsInput = setValueCommand.Arguments.Single(argument => argument.Name == ParameterProcessor.SaveToUserSecretsName); 928var arguments = new InteractionInputCollection(setValueCommand.Arguments); 953var arguments = new InteractionInputCollection(setValueCommand.Arguments); 987var arguments = new InteractionInputCollection(setValueCommand.Arguments); 1025var arguments = new InteractionInputCollection(deleteCommand.Arguments); 1057var 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);