# ResourceEndpointsAllocatedEvent

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

This event is raised by orchestrators to signal to resources that their endpoints have been allocated.

## Remarks

Resources that customize their URLs via a `ResourceUrlsCallbackAnnotation` have their callbacks
invoked before event handlers run. Browser URL references contain the finalized values at that point.
Endpoint and URL configuration must be registered before this event is published.
Browser-facing resource allocators should complete allocation through
`PublishResourceEndpointsAllocatedAsync`
so URL customization completes before the notification is dispatched.

## Definition

```go
type ResourceEndpointsAllocatedEvent interface {
    DistributedApplicationEvent
    DistributedApplicationResourceEvent
}
```

## Embeds

- [`DistributedApplicationEvent`](/reference/api/go/aspire.hosting/distributedapplicationevent.md)
- [`DistributedApplicationResourceEvent`](/reference/api/go/aspire.hosting/distributedapplicationresourceevent.md)

## Properties

- `Resource`: [`Resource`](/reference/api/go/aspire.hosting/resource.md) `get` -- Gets the Resource property
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- Gets the Services property
