EnvironmentCallbackAnnotation
Class net10.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.IResourceAnnotation{ // ...} 5 members
Constructors4
Section titled ConstructorsEnvironmentCallbackAnnotation(string, Func<string>) Initializes a new instance of the
EnvironmentCallbackAnnotation class with the specified name and callback function. 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.