10 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.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));
14 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)
229/// 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. 251/// 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)
1331var commandLineContext = new CommandLineArgsCallbackContext(args, cancellationToken); 1720var commandLineArgsContext = new CommandLineArgsCallbackContext(args, cancellationToken);
Publishing\ManifestPublishingContext.cs (1)
526var commandLineArgsContext = new CommandLineArgsCallbackContext(args, CancellationToken);
ResourceBuilderExtensions.cs (2)
229public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 248public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (2)
159private static void AddProjectArguments(string scriptPath, string[] scriptArgs, CommandLineArgsCallbackContext context) 169private static void AddOpenTelemetryArguments(CommandLineArgsCallbackContext context)
PythonProjectResourceBuilderExtensions.cs (2)
162private static void AddProjectArguments(string scriptPath, string[] scriptArgs, CommandLineArgsCallbackContext context) 172private static void AddOpenTelemetryArguments(CommandLineArgsCallbackContext context)
Aspire.Hosting.Tests (1)
Utils\ArgumentEvaluator.cs (1)
15var commandLineContext = new CommandLineArgsCallbackContext(args, default);