CapturedEnvironmentVariable
Classsealednet10.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 PropertiesIResource? 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 , ApplicationModel.ContainerImageReference , or ApplicationModel.ContainerPortReference .