# InitializeResourceEvent

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

This event is raised by orchestrators to signal to resources that they should initialize themselves.

## Definition

```typescript
interface InitializeResourceEvent
  extends IDistributedApplicationEvent,
    IDistributedApplicationResourceEvent {
  readonly eventing: IDistributedApplicationEventing;
  readonly logger: ILogger;
  readonly notifications: ResourceNotificationService;
  readonly resource: IResource;
  readonly services: IServiceProvider;
}
```

## Properties

- `eventing`: [IDistributedApplicationEventing](/reference/api/typescript/aspire.hosting/idistributedapplicationeventing.md) `get` -- The `IDistributedApplicationEventing` service for the app host.
- `logger`: `ILogger` `get` -- An instance of `ILogger` that can be used to log messages for the resource.
- `notifications`: [ResourceNotificationService](/reference/api/typescript/aspire.hosting/resourcenotificationservice.md) `get` -- The `ResourceNotificationService` for the app host.
- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- Gets the Resource property
- `services`: `IServiceProvider` `get` -- The `IServiceProvider` for the app host.
