CommandLineArgsCallbackAnnotation
Class net10.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.IResourceAnnotation{ // ...}Constructors2
Section titled ConstructorsCommandLineArgsCallbackAnnotation(Func<CommandLineArgsCallbackContext, Task>) Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action. CommandLineArgsCallbackAnnotation(Action<IList<object>>) Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action.