Skip to content
DocsTry Aspire
DocsTry

ReferenceEnvironmentInjectionAnnotation Constructors

ClassConstructors1 member
Annotation that specifies which connection and endpoint information should be injected into environment variables when a resource is referenced using WithReference().
Constructor(ReferenceEnvironmentInjectionFlags)Section titled Constructor(ReferenceEnvironmentInjectionFlags)
Initializes a new instance of ReferenceEnvironmentInjectionAnnotation.
public sealed class ReferenceEnvironmentInjectionAnnotation
{
public ReferenceEnvironmentInjectionAnnotation(
ReferenceEnvironmentInjectionFlags flags)
{
// ...
}
}
flagsReferenceEnvironmentInjectionFlagsThe flags specifying which connection information to inject.