23 instantiations of CommandLineArgsCallbackContext
Aspire.Hosting (5)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
20var callbackContext = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 69var launchToolContext = new CommandLineArgsCallbackContext([], resource, cancellationToken)
ApplicationModel\ResourceExtensions.cs (3)
274var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 323var context = new CommandLineArgsCallbackContext([], resource, cancellationToken) 1700var 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.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1037var callbackContext = new CommandLineArgsCallbackContext(args, resource, context.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)
510var context = new CommandLineArgsCallbackContext(args, nodeResource); 535var 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)
367var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
463var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource);
Aspire.Hosting.Tests (5)
Dashboard\DashboardEventHandlersTests.cs (4)
617await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 697await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 766await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 833await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
WithTerminalTests.cs (1)
1262await callbackAnnotation.Callback(new CommandLineArgsCallbackContext(argsList, CancellationToken.None));
41 references to CommandLineArgsCallbackContext
Aspire.Hosting (25)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
20var callbackContext = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 69var launchToolContext = new CommandLineArgsCallbackContext([], resource, cancellationToken)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (5)
10using IArgCallbackAnnotation = ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>; 24public CommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task> callback) 49public Func<CommandLineArgsCallbackContext, Task> Callback { get; } 53Task<IList<object>> IArgCallbackAnnotation.EvaluateOnceAsync(CommandLineArgsCallbackContext context) 82private async Task<IList<object>> ExecuteCallbackAsync(CommandLineArgsCallbackContext context)
ApplicationModel\LaunchToolArgsCallbackAnnotation.cs (6)
8using IArgCallbackAnnotation = ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>; 44/// <see cref="CommandLineArgsCallbackContext.Args"/> list; everything it adds becomes the leading arguments. 54public LaunchToolArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task> callback, string? owningLaunchConfigurationType, bool showInCommandLine) 89public Func<CommandLineArgsCallbackContext, Task> Callback { get; } 93Task<IList<object>> IArgCallbackAnnotation.EvaluateOnceAsync(CommandLineArgsCallbackContext context) 119private async Task<IList<object>> ExecuteCallbackAsync(CommandLineArgsCallbackContext context)
ApplicationModel\ResourceExtensions.cs (3)
274var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 323var context = new CommandLineArgsCallbackContext([], resource, cancellationToken) 1700var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
ContainerResourceBuilderExtensions.cs (2)
519/// 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. 543/// 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\DcpExecutor.cs (2)
1347((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult(); 1355((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult();
DotnetToolResourceExtensions.cs (1)
59void BuildToolExecArguments(CommandLineArgsCallbackContext x)
ResourceBuilderExtensions.cs (4)
721public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 741public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs 4771/// <see cref="CommandLineArgsCallbackContext.Args"/> list; everything it adds becomes the leading arguments. 4812Action<CommandLineArgsCallbackContext> callback,
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.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1037var callbackContext = new CommandLineArgsCallbackContext(args, resource, context.CancellationToken)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
171var context = new CommandLineArgsCallbackContext(serviceResource.Args, serviceResource.TargetResource, cancellationToken: cancellationToken)
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
895private static void AddCustomLaunchToolArgs(CommandLineArgsCallbackContext context)
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1383private static void AddLaunchArgs(JavaAppResource resource, CommandLineArgsCallbackContext ctx)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1141Action<CommandLineArgsCallbackContext>? argsCallback = null) where TResource : JavaScriptAppResource
Aspire.Hosting.JavaScript.Tests (7)
AddViteAppTests.cs (2)
510var context = new CommandLineArgsCallbackContext(args, nodeResource); 535var 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)
367var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
463var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource);