# IDistributedApplicationResourceEvent

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Eventing`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Eventing/IDistributedApplicationEvent.cs)
- Implements: [IDistributedApplicationEvent](/reference/api/csharp/aspire.hosting/idistributedapplicationevent.md)

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

## Definition

```csharp
namespace Aspire.Hosting.Eventing;

public interface IDistributedApplicationResourceEvent
    : Aspire.Hosting.Eventing.IDistributedApplicationEvent
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting/IDistributedApplicationResourceEvent`

## Properties

- [Logger](/reference/api/csharp/aspire.hosting/idistributedapplicationresourceevent/properties.md#logger) : `ILogger` `virtual` `get` -- An instance of `Logging.ILogger` that can be used to log messages for the resource.
- [Resource](/reference/api/csharp/aspire.hosting/idistributedapplicationresourceevent/properties.md#resource) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `abstract` `get` -- Resource associated with this event.
- [Services](/reference/api/csharp/aspire.hosting/idistributedapplicationresourceevent/properties.md#services) : `IServiceProvider` `virtual` `get` -- The `IServiceProvider` instance.
