ReferenceEnvironmentInjectionFlags
Enum net8.0
Specifies which connection or endpoint information should be injected into environment variables when
WithReference() is invoked. namespace Aspire.Hosting.ApplicationModel;
public enum ReferenceEnvironmentInjectionFlagsEnum Members
Section titled Enum Members[Flags] Values can be combined with bitwise OR.
NoneNo connection information will be injected.
ConnectionStringThe connection string will be injected as an environment variable.
ConnectionPropertiesIndividual connection properties will be injected as environment variables.
ServiceDiscoveryEach endpoint defined on the resource will be injected using the format "services__{resourceName}__{endpointScheme}__{endpointIndex}".
EndpointsEach endpoint defined on the resource will be injected using the format "{RESOURCENAME}_{ENDPOINTNAME}".
AllConnection string, connection properties and service endpoints will be injected as environment variables.