Skip to content
Docs Try Aspire

withEnvironmentCallbackAsync

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withEnvironmentCallbackAsync(callback: callback): IResourceWithEnvironment;
}

Signature

method withEnvironmentCallbackAsync builder
Sets environment variables via async callback
withEnvironmentCallbackAsync(callback: (arg: EnvironmentCallbackContext) => void): IResourceWithEnvironment
callback (arg: EnvironmentCallbackContext) => void
IResourceWithEnvironment

Applies to

This function is an extension method on the following types: