Skip to content
DocsTry Aspire
DocsTry

withReferenceEnvironment

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

Signature

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

Applies to

This method applies to the following types: