# ResourceEndpointsAllocatedEvent Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceEndpointsAllocatedEvent](/reference/api/csharp/aspire.hosting/resourceendpointsallocatedevent.md)
- Kind: `Properties`
- Members: `2`

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

## Resource

- Name: `Resource`
- Modifiers: `get`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceEndpointsAllocatedEvent.cs#L18)

Resource associated with this event.

```csharp
public IResource Resource { get; }
```

## Services

- Name: `Services`
- Modifiers: `get`
- Returns: `IServiceProvider`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceEndpointsAllocatedEvent.cs#L21)

The `IServiceProvider` instance.

```csharp
public IServiceProvider Services { get; }
```
