Skip to content
DocsTry Aspire
DocsTry

CommandLineArgsCallbackAnnotation Constructors

ClassConstructors2 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)
{
// ...
}
}
callbackFunc<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)
{
// ...
}
}
callbackAction<IList<object>> The callback action to be executed.