25 instantiations of CommandLineArgsCallbackContext
Aspire.Hosting (5)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
22var callbackContext = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 72var launchToolContext = new CommandLineArgsCallbackContext([], resource, cancellationToken)
ApplicationModel\ResourceExtensions.cs (3)
275var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 324var context = new CommandLineArgsCallbackContext([], resource, cancellationToken) 1709var 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)
115var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1070var 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)
DotnetProjectBuildCoordinatorTests.cs (1)
3156var callbackContext = new CommandLineArgsCallbackContext([], project.Resource, startCts.Token)
Aspire.Hosting.JavaScript.Tests (7)
AddViteAppTests.cs (2)
508var context = new CommandLineArgsCallbackContext(args, nodeResource); 533var 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)
363var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
467var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource); 615await callback.Callback(new CommandLineArgsCallbackContext(args, resource, CancellationToken.None)).DefaultTimeout();
Aspire.Hosting.Tests (5)
Dashboard\DashboardEventHandlersTests.cs (4)
646await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 727await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 796await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 863await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
WithTerminalTests.cs (1)
1415await callbackAnnotation.Callback(new CommandLineArgsCallbackContext(argsList, CancellationToken.None));
46 references to CommandLineArgsCallbackContext
Aspire.Hosting (27)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
22var callbackContext = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 72var 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)
275var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken) 324var context = new CommandLineArgsCallbackContext([], resource, cancellationToken) 1709var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
ContainerResourceBuilderExtensions.cs (2)
516/// 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. 540/// 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)
1393((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult(); 1401((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult();
DotnetToolResourceExtensions.cs (1)
59void BuildToolExecArguments(CommandLineArgsCallbackContext x)
ResourceBuilderExtensions.cs (6)
972public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 992public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs 5184/// <see cref="CommandLineArgsCallbackContext.Args"/> list; everything it adds becomes the leading arguments. 5225Action<CommandLineArgsCallbackContext> callback, 5249/// <see cref="CommandLineArgsCallbackContext.Args"/> list. 5270Func<CommandLineArgsCallbackContext, Task> 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)
115var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1070var 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 (1)
DotnetProjectBuildCoordinator.cs (1)
985public async Task ApplyBuildPropertiesAsync(CommandLineArgsCallbackContext context)
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectBuildCoordinatorTests.cs (1)
3156var callbackContext = new CommandLineArgsCallbackContext([], project.Resource, startCts.Token)
DotnetProjectResourceTests.cs (1)
1073private static void AddCustomLaunchToolArgs(CommandLineArgsCallbackContext context)
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1380private static void AddLaunchArgs(JavaAppResource resource, CommandLineArgsCallbackContext ctx)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1655Action<CommandLineArgsCallbackContext>? argsCallback = null) where TResource : JavaScriptAppResource
Aspire.Hosting.JavaScript.Tests (7)
AddViteAppTests.cs (2)
508var context = new CommandLineArgsCallbackContext(args, nodeResource); 533var 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)
363var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
467var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource);
Aspire.Hosting.Tests (1)
DotnetProgramPublishingTests.cs (1)
147Action<CommandLineArgsCallbackContext> launchToolCallback = context =>