Skip to content
Docs Try Aspire
Docs Try

IResourceWithEnvironment.withReferenceEnvironment

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEnvironment {
// ... omitted for brevity
withReferenceEnvironment(options: ReferenceEnvironmentInjectionOptions): IResourceWithEnvironment;
}

Signature

method withReferenceEnvironment builder
Configures how information is injected into environment variables when the resource references other resources.
withReferenceEnvironment(options: ReferenceEnvironmentInjectionOptions): IResourceWithEnvironment
options ReferenceEnvironmentInjectionOptions
IResourceWithEnvironment

Defined on

This method is defined on the following type: