Skip to content
Docs Try Aspire

ReferenceEnvironmentInjectionAnnotation Constructors

Class Constructors 1 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)
{
// ...
}
}
flags ReferenceEnvironmentInjectionFlags The flags specifying which connection information to inject.