CommandLineArgsCallbackAnnotation Constructors
Class Constructors 2 members
Represents an annotation that provides a callback to be executed with a list of command-line arguments when an executable resource is started.
Constructor(Func<CommandLineArgsCallbackContext, Task>) Section titled Constructor(Func<CommandLineArgsCallbackContext, Task>) Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action. public class CommandLineArgsCallbackAnnotation{ public CommandLineArgsCallbackAnnotation( Func<CommandLineArgsCallbackContext, Task> callback) { // ... }}Parameters
callback Func<CommandLineArgsCallbackContext, Task> The callback action to be executed. Constructor(Action<IList<object>>) Section titled Constructor(Action<IList<object>>) Initializes a new instance of the
CommandLineArgsCallbackAnnotation class with the specified callback action. public class CommandLineArgsCallbackAnnotation{ public CommandLineArgsCallbackAnnotation( Action<IList<object>> callback) { // ... }}Parameters
callback Action<IList<object>> The callback action to be executed.