Skip to content
Docs Try Aspire
Docs Try

withReferenceEnvironment

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

Signature

method withReferenceEnvironment builder
Configures which reference values are injected into environment variables
withReferenceEnvironment(options: ReferenceEnvironmentInjectionOptions): IResourceWithEnvironment
options ReferenceEnvironmentInjectionOptions
IResourceWithEnvironment

Applies to

This method applies to the following types: