EnvironmentCallbackAnnotation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |