CapturedEnvironmentVariable
Class sealed net10.0
Represents a captured environment variable that will be written to the .env file adjacent to the Docker Compose file.
namespace Aspire.Hosting.Docker;
public sealed class CapturedEnvironmentVariable{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesDefaultValueget; setstring? Gets or sets the default value for the environment variable.
Descriptionget; setstring? Gets or sets the description for the environment variable.
Nameget; initstring Gets the name of the environment variable.
Resourceget; setIResource? Gets or sets the resource that this environment variable is associated with. This is useful when the source is an annotation on a resource, allowing you to identify which resource this environment variable is related to.
Sourceget; setobject? Gets or sets the source object that originated this environment variable. This could be a
ApplicationModel.ParameterResource, ApplicationModel.ContainerMountAnnotation, or other source types.