Partilhar via


EnvironmentCallbackAnnotation Class

Definition

Represents an annotation that provides a callback to modify the environment variables of an application.

public class EnvironmentCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type EnvironmentCallbackAnnotation = class
    interface IResourceAnnotation
Public Class EnvironmentCallbackAnnotation
Implements IResourceAnnotation
Inheritance
EnvironmentCallbackAnnotation
Implements

Constructors

EnvironmentCallbackAnnotation(Action<Dictionary<String,Object>>)

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

EnvironmentCallbackAnnotation(Action<EnvironmentCallbackContext>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

EnvironmentCallbackAnnotation(Func<EnvironmentCallbackContext,Task>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

EnvironmentCallbackAnnotation(String, Func<String>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified name and callback function.

Properties

Callback

Gets or sets the callback action to be executed when the environment is being built.

Applies to