10 instantiations of CommandLineArgsCallbackContext
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
285var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
377var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
109var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
66var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
147var context = new CommandLineArgsCallbackContext(serviceResource.Args, serviceResource.TargetResource, cancellationToken: cancellationToken)
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
272var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken);
Aspire.Hosting.Tests (4)
Dashboard\DashboardLifecycleHookTests.cs (4)
249await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 334await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 406await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args)); 476await argsAnnotation.Callback(new CommandLineArgsCallbackContext(args));
17 references to CommandLineArgsCallbackContext
Aspire.Hosting (8)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
18public CommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task> callback) 43public Func<CommandLineArgsCallbackContext, Task> Callback { get; }
ApplicationModel\ResourceExtensions.cs (1)
285var context = new CommandLineArgsCallbackContext(args, resource, cancellationToken)
ContainerResourceBuilderExtensions.cs (2)
345/// 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. 367/// 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.
ResourceBuilderExtensions.cs (3)
315public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs 334public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<CommandLineArgsCallbackContext, Task> callback) where T : IResourceWithArgs 2369public static IResourceBuilder<T> WithVSCodeDebugSupport<T, TLaunchConfiguration>(this IResourceBuilder<T> builder, Func<string, TLaunchConfiguration> launchConfigurationProducer, string requiredExtensionId, Action<CommandLineArgsCallbackContext>? argsCallback = null)
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
377var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
109var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken: cancellationToken)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
66var context = new CommandLineArgsCallbackContext(Args, resource, cancellationToken)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
147var context = new CommandLineArgsCallbackContext(serviceResource.Args, serviceResource.TargetResource, cancellationToken: cancellationToken)
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
272var context = new CommandLineArgsCallbackContext([], resource, cancellationToken: cancellationToken);
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (2)
161private static void AddArguments(string scriptPath, string[] scriptArgs, CommandLineArgsCallbackContext context) 171private static void AddOpenTelemetryArguments(CommandLineArgsCallbackContext context)
PythonProjectResourceBuilderExtensions.cs (2)
158private static void AddProjectArguments(string scriptPath, string[] scriptArgs, CommandLineArgsCallbackContext context) 168private static void AddOpenTelemetryArguments(CommandLineArgsCallbackContext context)