# IServiceProvider

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

## Definition

```typescript
interface IServiceProvider {
  getDistributedApplicationModel(): DistributedApplicationModel;
  getEventing(): IDistributedApplicationEventing;
  getLoggerFactory(): ILoggerFactory;
  getResourceLoggerService(): ResourceLoggerService;
  getResourceNotificationService(): ResourceNotificationService;
  getUserSecretsManager(): IUserSecretsManager;
}
```

## Methods

- [getDistributedApplicationModel](/reference/api/typescript/aspire.hosting/iserviceprovider/getdistributedapplicationmodel.md) -- `method` -- Gets the distributed application model from the service provider
    ```typescript
  getDistributedApplicationModel(): DistributedApplicationModel
  ```
- [getEventing](/reference/api/typescript/aspire.hosting/iserviceprovider/geteventing.md) -- `method` -- Gets the distributed application eventing service from the service provider
    ```typescript
  getEventing(): IDistributedApplicationEventing
  ```
- [getLoggerFactory](/reference/api/typescript/aspire.hosting/iserviceprovider/getloggerfactory.md) -- `method` -- Gets the logger factory from the service provider
    ```typescript
  getLoggerFactory(): ILoggerFactory
  ```
- [getResourceLoggerService](/reference/api/typescript/aspire.hosting/iserviceprovider/getresourceloggerservice.md) -- `method` -- Gets the resource logger service from the service provider
    ```typescript
  getResourceLoggerService(): ResourceLoggerService
  ```
- [getResourceNotificationService](/reference/api/typescript/aspire.hosting/iserviceprovider/getresourcenotificationservice.md) -- `method` -- Gets the resource notification service from the service provider
    ```typescript
  getResourceNotificationService(): ResourceNotificationService
  ```
- [getUserSecretsManager](/reference/api/typescript/aspire.hosting/iserviceprovider/getusersecretsmanager.md) -- `method` -- Gets the user secrets manager from the service provider
    ```typescript
  getUserSecretsManager(): IUserSecretsManager
  ```
