# BeforeResourceStartedEvent

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

This event is raised by orchestrators before they have started a new resource.

## Remarks

Resources that are created by orchestrators may not yet be ready to handle requests.

## Definition

```go
type BeforeResourceStartedEvent 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
