Skip to content
DocsTry Aspire
DocsTry

IResourceWithEnvironment.withReferenceEnvironment

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEnvironment {
// ... 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

Defined on

This method is defined on the following type: