# ResourceStoppedEvent Properties

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

This event is raised after a resource has stopped.

## 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/ResourceStoppedEvent.cs#L21)

Resource associated with this event.

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

## ResourceEvent

- Name: `ResourceEvent`
- Modifiers: `get`
- Returns: [ResourceEvent](/reference/api/csharp/aspire.hosting/resourceevent.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceStoppedEvent.cs#L29)

The [ResourceStoppedEvent.ResourceEvent](/reference/api/csharp/aspire.hosting/resourcestoppedevent/properties.md#resourceevent) containing the current state information.

```csharp
public ResourceEvent ResourceEvent { get; }
```

## Services

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

The `IServiceProvider` instance.

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