# InitializeResourceEvent Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InitializeResourceEvent](/reference/api/csharp/aspire.hosting/initializeresourceevent.md)
- Kind: `Properties`
- Members: `5`

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

## Eventing

- Name: `Eventing`
- Modifiers: `get`
- Returns: [IDistributedApplicationEventing](/reference/api/csharp/aspire.hosting/idistributedapplicationeventing.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/InitializeResourceEvent.cs#L35)

The [IDistributedApplicationEventing](/reference/api/csharp/aspire.hosting/idistributedapplicationeventing.md) service for the app host.

```csharp
public IDistributedApplicationEventing Eventing { get; }
```

## Logger

- Name: `Logger`
- Modifiers: `get`
- Returns: `ILogger`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/InitializeResourceEvent.cs#L40)

An instance of `Logging.ILogger` that can be used to log messages for the resource.

```csharp
public ILogger Logger { get; }
```

## Notifications

- Name: `Notifications`
- Modifiers: `get`
- Returns: [ResourceNotificationService](/reference/api/csharp/aspire.hosting/resourcenotificationservice.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/InitializeResourceEvent.cs#L45)

The [ResourceNotificationService](/reference/api/csharp/aspire.hosting/resourcenotificationservice.md) for the app host.

```csharp
public ResourceNotificationService Notifications { get; }
```

## Resource

- Name: `Resource`
- Modifiers: `get`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/InitializeResourceEvent.cs#L30)

Resource associated with this event.

```csharp
public IResource Resource { get; }
```

## Services

- Name: `Services`
- Modifiers: `get`
- Returns: `IServiceProvider`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/InitializeResourceEvent.cs#L50)

The `IServiceProvider` for the app host.

```csharp
public IServiceProvider Services { get; }
```
