18 instantiations of CommandLineArgsCallbackContext
Aspire.Hosting (3)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (1)
18var callbackContext = new CommandLineArgsCallbackContext(context.Arguments, resource, cancellationToken)
ApplicationModel\ResourceExtensions.cs (2)
266var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 1349var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
117var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
81var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
171var context = new CommandLineArgsCallbackContext(serviceResource.Args, serviceResource.TargetResource, cancellationToken: cancellationToken)
Aspire.Hosting.JavaScript.Tests (7)
AddViteAppTests.cs (2)
248var context = new CommandLineArgsCallbackContext(args, nodeResource); 273var context = new CommandLineArgsCallbackContext(args, nodeResource);
AddViteAppWithPnpmTests.cs (4)
33var context = new CommandLineArgsCallbackContext(args, nodeResource); 67var context = new CommandLineArgsCallbackContext(args, nodeResource); 95var context = new CommandLineArgsCallbackContext(args, nodeResource); 128var context = new CommandLineArgsCallbackContext(args, nodeResource);
ResourceCreationTests.cs (1)
143var ctx = new CommandLineArgsCallbackContext(args, resource);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
271var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken);
Aspire.Hosting.Tests (4)
Dashboard\DashboardLifecycleHookTests.cs (4)
327await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 412await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 484await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 554await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
23 references to CommandLineArgsCallbackContext
Aspire.Hosting (11)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (1)
18var callbackContext = new CommandLineArgsCallbackContext(context.Arguments, resource, cancellationToken)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
18public CommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task> callback) 43public Func<CommandLineArgsCallbackContext, Task> Callback { get; }
ApplicationModel\ResourceExtensions.cs (2)
266var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 1349var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
ContainerResourceBuilderExtensions.cs (2)
442/// 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. 464/// 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.
DotnetToolResourceExtensions.cs (1)
52void BuildToolExecArguments(CommandLineArgsCallbackContext x)
ResourceBuilderExtensions.cs (3)
373public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 393public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs 2992public static IResourceBuilder<T> WithDebugSupport<T, TLaunchConfiguration>(this IResourceBuilder<T> builder, Func<string, TLaunchConfiguration> launchConfigurationProducer, string launchConfigurationType, Action<CommandLineArgsCallbackContext>? argsCallback = null)
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
117var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
81var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
171var context = new CommandLineArgsCallbackContext(serviceResource.Args, serviceResource.TargetResource, cancellationToken: cancellationToken)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
357Action<CommandLineArgsCallbackContext>? argsCallback = null) where TResource : JavaScriptAppResource
Aspire.Hosting.JavaScript.Tests (7)
AddViteAppTests.cs (2)
248var context = new CommandLineArgsCallbackContext(args, nodeResource); 273var context = new CommandLineArgsCallbackContext(args, nodeResource);
AddViteAppWithPnpmTests.cs (4)
33var context = new CommandLineArgsCallbackContext(args, nodeResource); 67var context = new CommandLineArgsCallbackContext(args, nodeResource); 95var context = new CommandLineArgsCallbackContext(args, nodeResource); 128var context = new CommandLineArgsCallbackContext(args, nodeResource);
ResourceCreationTests.cs (1)
143var ctx = new CommandLineArgsCallbackContext(args, resource);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
271var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken);