CommandLineArgsCallbackAnnotation
Class net8.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 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.