EnvironmentCallbackAnnotation
Classnet10.0
Represents an annotation that provides a callback to modify the environment variables of an application.
namespace Aspire.Hosting.ApplicationModel;
public class EnvironmentCallbackAnnotation : Aspire.Hosting.ApplicationModel.ICallbackResourceAnnotation<Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext, System.Collections.Generic.Dictionary<string, object>>, Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}ICallbackResourceAnnotation<EnvironmentCallbackContext, Dictionary<string, object>>IResourceAnnotation
5 members
Constructors4
Section titled Constructors Initializes a new instance of the
EnvironmentCallbackAnnotation class with the specified name and callback function. Initializes a new instance of the
EnvironmentCallbackAnnotation class with the specified callback action. Initializes a new instance of the
EnvironmentCallbackAnnotation class with the specified callback. Initializes a new instance of the
EnvironmentCallbackAnnotation class with the specified callback. Properties1
Section titled PropertiesCallbackgetFunc<EnvironmentCallbackContext, Task> Gets or sets the callback action to be executed when the environment is being built.