CommandLineArgsCallbackAnnotation
Classnet10.0
Represents an annotation that provides a callback to be executed with a list of command-line arguments when an executable resource is started.
namespace Aspire.Hosting.ApplicationModel;
public class CommandLineArgsCallbackAnnotation : Aspire.Hosting.ApplicationModel.ICallbackResourceAnnotation<Aspire.Hosting.ApplicationModel.CommandLineArgsCallbackContext, System.Collections.Generic.IList<object>>, Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}ICallbackResourceAnnotation<CommandLineArgsCallbackContext, IList<object>>IResourceAnnotation
Constructors2
Section titled Constructors Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action. Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action. Properties1
Section titled PropertiesCallbackgetFunc<CommandLineArgsCallbackContext, Task> Gets the callback action to be executed when the executable arguments are parsed.