11 instantiations of CommandLineArgsCallbackContext
Aspire.Hosting.Garnet.Tests (3)
AddGarnetTests.cs (3)
176argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 207argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 239argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
Aspire.Hosting.Nats.Tests (1)
AddNatsTests.cs (1)
68argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (3)
315argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 346argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 378argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
Aspire.Hosting.Tests (1)
Utils\ArgumentEvaluator.cs (1)
15var commandLineContext = new CommandLineArgsCallbackContext(args, default);
Aspire.Hosting.Valkey.Tests (3)
AddValkeyTests.cs (3)
176argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 207argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 239argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
12 references to CommandLineArgsCallbackContext
Aspire.Hosting (9)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
15public CommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task> callback) 40public Func<CommandLineArgsCallbackContext, Task> Callback { get; }
ContainerResourceBuilderExtensions.cs (2)
194/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, Action{CommandLineArgsCallbackContext})"/> method. 213/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, Func{CommandLineArgsCallbackContext, Task})"/> method.
Dcp\ApplicationExecutor.cs (2)
1232var commandLineContext = new CommandLineArgsCallbackContext(args, cancellationToken); 1617var commandLineArgsContext = new CommandLineArgsCallbackContext(args, cancellationToken);
Publishing\ManifestPublishingContext.cs (1)
486var commandLineArgsContext = new CommandLineArgsCallbackContext(args, CancellationToken);
ResourceBuilderExtensions.cs (2)
189public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 205public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs
Aspire.Hosting.Python (2)
PythonProjectResourceBuilderExtensions.cs (2)
159private static void AddProjectArguments(string scriptPath, string[] scriptArgs, CommandLineArgsCallbackContext context) 169private static void AddOpenTelemetryArguments(CommandLineArgsCallbackContext context)
Aspire.Hosting.Tests (1)
Utils\ArgumentEvaluator.cs (1)
15var commandLineContext = new CommandLineArgsCallbackContext(args, default);