# ResourceReadyEvent

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

Event that is raised when a resource initially transitions to a ready state.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class ResourceReadyEvent
    : Aspire.Hosting.Eventing.IDistributedApplicationEvent,
      Aspire.Hosting.Eventing.IDistributedApplicationResourceEvent
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting/ResourceReadyEvent`
- Public instance properties are exported as ATS capabilities.

## Remarks

This event is only fired the first time a resource transitions to a ready state after starting.

## Constructors

- [ResourceReadyEvent(IResource, IServiceProvider)](/reference/api/csharp/aspire.hosting/resourcereadyevent/constructors.md#constructor-iresource-iserviceprovider) -- Event that is raised when a resource initially transitions to a ready state.

## Properties

- [Resource](/reference/api/csharp/aspire.hosting/resourcereadyevent/properties.md#resource) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `get` -- The resource that is in a healthy state.
- [Services](/reference/api/csharp/aspire.hosting/resourcereadyevent/properties.md#services) : `IServiceProvider` `get` -- The `IServiceProvider` instance.
