Skip to content
Docs Try Aspire

ContainerRuntimeArgsCallbackAnnotation Constructors

Class Constructors 2 members
Represents an additional argument to pass to the container runtime run command.
Constructor(Func<ContainerRuntimeArgsCallbackContext, Task>) Section titled Constructor(Func<ContainerRuntimeArgsCallbackContext, Task>)
Initializes a new instance of the ContainerRuntimeArgsCallbackAnnotation class with the specified callback action.
public sealed class ContainerRuntimeArgsCallbackAnnotation
{
public ContainerRuntimeArgsCallbackAnnotation(
Func<ContainerRuntimeArgsCallbackContext, Task> callback)
{
// ...
}
}
callback Func<ContainerRuntimeArgsCallbackContext, Task>
Constructor(Action<IList<object>>) Section titled Constructor(Action<IList<object>>)
Initializes a new instance of the ContainerRuntimeArgsCallbackAnnotation class with the specified callback action.
public sealed class ContainerRuntimeArgsCallbackAnnotation
{
public ContainerRuntimeArgsCallbackAnnotation(
Action<IList<object>> callback)
{
// ...
}
}
callback Action<IList<object>> The callback action to be executed.