# GetEventing

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

Gets the distributed application eventing service from the service provider.

## Definition

```go
func (ServiceProvider) GetEventing() DistributedApplicationEventing
```

## Returns

[`DistributedApplicationEventing`](/reference/api/go/aspire.hosting/distributedapplicationeventing.md) -- The distributed application eventing handle.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md)
