# ServiceProvider.GetEventing

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [ServiceProvider](/reference/api/go/aspire.hosting/serviceprovider.md)
- Version: `17.0.0`
- Kind: `method`

Gets the distributed application eventing service from the service provider.

## Definition

```go
type ServiceProvider interface {
    // ... omitted for brevity
    GetEventing() DistributedApplicationEventing
}
```

## Signature

```go
GetEventing() DistributedApplicationEventing
```

## Returns

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

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

## Defined on

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