Skip to content
Docs Try Aspire

onResourceEndpointsAllocated

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

Signature

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

Applies to

This function is an extension method on the following types: