Share via


CommandLineArgsCallbackAnnotation Class

Definition

Represents an annotation that provides a callback to be executed with a list of command-line arguments when an executable resource is started.

public class CommandLineArgsCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type CommandLineArgsCallbackAnnotation = class
    interface IResourceAnnotation
Public Class CommandLineArgsCallbackAnnotation
Implements IResourceAnnotation
Inheritance
CommandLineArgsCallbackAnnotation
Implements

Constructors

CommandLineArgsCallbackAnnotation(Action<IList<Object>>)

Initializes a new instance of the CommandLineArgsCallbackAnnotation class with the specified callback action.

CommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext,Task>)

Initializes a new instance of the CommandLineArgsCallbackAnnotation class with the specified callback action.

Properties

Callback

Gets the callback action to be executed when the executable arguments are parsed.

Applies to