共用方式為


ContainerRuntimeArgsCallbackAnnotation Class

Definition

Represents an additional argument to pass to the container runtime run command.

public sealed class ContainerRuntimeArgsCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type ContainerRuntimeArgsCallbackAnnotation = class
    interface IResourceAnnotation
Public NotInheritable Class ContainerRuntimeArgsCallbackAnnotation
Implements IResourceAnnotation
Inheritance
ContainerRuntimeArgsCallbackAnnotation
Implements

Constructors

ContainerRuntimeArgsCallbackAnnotation(Action<IList<Object>>)

Initializes a new instance of the ContainerRuntimeArgsCallbackAnnotation class with the specified callback action.

ContainerRuntimeArgsCallbackAnnotation(Func<ContainerRuntimeArgsCallbackContext,Task>)

Initializes a new instance of the ContainerRuntimeArgsCallbackAnnotation class with the specified callback action.

Properties

Callback

Gets the callback action to be executed when the executable arguments are parsed.

Applies to