Skip to content
Docs Try Aspire
Docs Try

onResourceEndpointsAllocated

Method
📦 Aspire.Hosting v13.3.0
interface ContainerResource {
// ... omitted for brevity
onResourceEndpointsAllocated(callback: callback): IResourceWithEndpoints;
}

Signature

method onResourceEndpointsAllocated builder
Subscribes to the ResourceEndpointsAllocated event
onResourceEndpointsAllocated(callback: (arg: ResourceEndpointsAllocatedEvent) => Promise<void>): IResourceWithEndpoints
callback (arg: ResourceEndpointsAllocatedEvent) => Promise<void>
IResourceWithEndpoints

Applies to

This method applies to the following types: