11 references to CommandLineArgsCallbackContext
Aspire.Hosting (7)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
18
public CommandLineArgsCallbackAnnotation(Func<
CommandLineArgsCallbackContext
, Task> callback)
43
public Func<
CommandLineArgsCallbackContext
, Task> Callback { get; }
ApplicationModel\ResourceExtensions.cs (1)
272
var
context = new CommandLineArgsCallbackContext(args, cancellationToken)
ContainerResourceBuilderExtensions.cs (2)
343
/// 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.
365
/// 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 (2)
229
public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<
CommandLineArgsCallbackContext
> callback) where T : IResourceWithArgs
248
public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Func<
CommandLineArgsCallbackContext
, Task> callback) where T : IResourceWithArgs
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (2)
155
private static void AddArguments(string scriptPath, string[] scriptArgs,
CommandLineArgsCallbackContext
context)
165
private static void AddOpenTelemetryArguments(
CommandLineArgsCallbackContext
context)
PythonProjectResourceBuilderExtensions.cs (2)
158
private static void AddProjectArguments(string scriptPath, string[] scriptArgs,
CommandLineArgsCallbackContext
context)
168
private static void AddOpenTelemetryArguments(
CommandLineArgsCallbackContext
context)