ReferenceEnvironmentInjectionFlags
Enum net10.0
Specifies which connection or endpoint information should be injected into environment variables when
WithReference() is invoked. namespace Aspire.Hosting.ApplicationModel;
public sealed enum ReferenceEnvironmentInjectionFlagsEnum Members
Section titled Enum MembersNoneNo 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}__{endpointName}__{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.