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)
1073var 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)
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)
368var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
468var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource); 616await callback.Callback(new CommandLineArgsCallbackContext(args, resource, CancellationToken.None)).DefaultTimeout();
Aspire.Hosting.Tests (5)
Dashboard\DashboardEventHandlersTests.cs (4)
639await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 720await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 789await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 856await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
WithTerminalTests.cs (1)
1361await 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)
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)
1394((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult(); 1402((ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>)callback).ForgetCachedResult();
DotnetToolResourceExtensions.cs (1)
59void BuildToolExecArguments(CommandLineArgsCallbackContext x)
ResourceBuilderExtensions.cs (6)
722public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 742public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs 4897/// <see cref="CommandLineArgsCallbackContext.Args"/> list; everything it adds becomes the leading arguments. 4938Action<CommandLineArgsCallbackContext> callback, 4962/// <see cref="CommandLineArgsCallbackContext.Args"/> list. 4983Func<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)
1073var 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)
1383private static void AddLaunchArgs(JavaAppResource resource, CommandLineArgsCallbackContext ctx)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1657Action<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)
368var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
468var argsContext = new CommandLineArgsCallbackContext(args, simulator.Resource);
Aspire.Hosting.Tests (1)
DotnetProgramPublishingTests.cs (1)
148Action<CommandLineArgsCallbackContext> launchToolCallback = context =>