# AfterPublishEvent

- 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 published after the distributed application is published.

## Definition

```go
type AfterPublishEvent interface {
    DistributedApplicationEvent
}
```

## Embeds

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

## Properties

- `Model`: [`DistributedApplicationModel`](/reference/api/go/aspire.hosting/distributedapplicationmodel.md) `get` -- The `DistributedApplicationModel` instance.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- The `IServiceProvider` for the AppHost.
