// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Aspire.Hosting.ApplicationModel; /// /// Specifies which connection or endpoint information should be injected into environment variables when WithReference() is invoked. /// [Flags] public enum ReferenceEnvironmentInjectionFlags { /// /// No connection information will be injected. /// None = 0, /// /// The connection string will be injected as an environment variable. /// ConnectionString = 1 << 0, /// /// Individual connection properties will be injected as environment variables. /// ConnectionProperties = 1 << 1, /// /// Each endpoint defined on the resource will be injected using the format "services__{resourceName}__{endpointName}__{endpointIndex}". /// ServiceDiscovery = 1 << 2, /// /// Each endpoint defined on the resource will be injected using the format "{RESOURCENAME}_{ENDPOINTNAME}". /// Endpoints = 1 << 3, /// /// Connection string, connection properties and service endpoints will be injected as environment variables. /// All = ConnectionString | ConnectionProperties | ServiceDiscovery | Endpoints }