# ServiceProvider

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

## Definition

```go
type ServiceProvider interface{}
```

## Methods

- [GetAspireStore](/reference/api/go/aspire.hosting/serviceprovider/getaspirestore.md) -- `method` -- Gets the Aspire store from the service provider.
  ```go
  GetAspireStore() AspireStore
  ```
- [GetDistributedApplicationModel](/reference/api/go/aspire.hosting/serviceprovider/getdistributedapplicationmodel.md) -- `method` -- Gets the distributed application model from the service provider.
  ```go
  GetDistributedApplicationModel() DistributedApplicationModel
  ```
- [GetEventing](/reference/api/go/aspire.hosting/serviceprovider/geteventing.md) -- `method` -- Gets the distributed application eventing service from the service provider.
  ```go
  GetEventing() DistributedApplicationEventing
  ```
- [GetInteractionService](/reference/api/go/aspire.hosting/serviceprovider/getinteractionservice.md) -- `method` -- Gets the interaction service from the service provider.
  ```go
  GetInteractionService() InteractionService
  ```
- [GetLoggerFactory](/reference/api/go/aspire.hosting/serviceprovider/getloggerfactory.md) -- `method` -- Gets the logger factory from the service provider.
  ```go
  GetLoggerFactory() LoggerFactory
  ```
- [GetResourceCommandService](/reference/api/go/aspire.hosting/serviceprovider/getresourcecommandservice.md) -- `method` -- Gets the resource command service from the service provider.
  ```go
  GetResourceCommandService() ResourceCommandService
  ```
- [GetResourceLoggerService](/reference/api/go/aspire.hosting/serviceprovider/getresourceloggerservice.md) -- `method` -- Gets the resource logger service from the service provider.
  ```go
  GetResourceLoggerService() ResourceLoggerService
  ```
- [GetResourceNotificationService](/reference/api/go/aspire.hosting/serviceprovider/getresourcenotificationservice.md) -- `method` -- Gets the resource notification service from the service provider.
  ```go
  GetResourceNotificationService() ResourceNotificationService
  ```
- [GetUserSecretsManager](/reference/api/go/aspire.hosting/serviceprovider/getusersecretsmanager.md) -- `method` -- Gets the user secrets manager from the service provider.
  ```go
  GetUserSecretsManager() UserSecretsManager
  ```

## Applies to

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