Skip to content
Docs Try Aspire
Docs Try

IResourceWithEndpoints.onResourceEndpointsAllocated

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
onResourceEndpointsAllocated(callback: (arg: ResourceEndpointsAllocatedEvent) => Promise<void>): IResourceWithEndpoints;
}

Signature

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

Defined on

This method is defined on the following type: