# IDistributedApplicationResourceEvent Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [IDistributedApplicationResourceEvent](/reference/api/csharp/aspire.hosting/idistributedapplicationresourceevent.md)
- Kind: `Properties`
- Members: `3`

Represents an event that is published during the lifecycle of the AppHost for a specific resource.

## Logger

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

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

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

## Resource

- Name: `Resource`
- Modifiers: `abstract` `get`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)

Resource associated with this event.

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

## Services

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

The `IServiceProvider` instance.

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