# KnownResourceStates

- 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/CustomResourceSnapshot.cs)

The set of well known resource states.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public static class KnownResourceStates
{
    // ...
}
```

## Fields

- [Active](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#active) : `string` `static` -- The not active state. Useful for resources without a lifetime.
- [BuildableStates](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#buildablestates) : `IReadOnlyList<string>` `static` -- List of states in which a resource can be rebuilt.
- [Building](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#building) : `string` `static` -- The building state. Useful for showing the resource is being rebuilt.
- [Exited](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#exited) : `string` `static` -- The exited state. Useful for showing the resource has exited.
- [FailedToStart](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#failedtostart) : `string` `static` -- The failed to start state. Useful for showing the resource has failed to start successfully.
- [Finished](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#finished) : `string` `static` -- The finished state. Useful for showing the resource has finished.
- [Hidden](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#hidden) : `string` `static` `obsolete` -- The hidden state. Useful for hiding the resource.
- [NotStarted](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#notstarted) : `string` `static` -- The not started state. Useful for showing the resource was created without being started.
- [Running](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#running) : `string` `static` -- The running state. Useful for showing the resource is running.
- [RuntimeUnhealthy](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#runtimeunhealthy) : `string` `static` -- The runtime unhealthy state. Indicates that a resource could not be started because the runtime is not in a healthy state.
- [Starting](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#starting) : `string` `static` -- The starting state. Useful for showing the resource is starting.
- [Stopping](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#stopping) : `string` `static` -- The stopping state. Useful for showing the resource is stopping.
- [TerminalStates](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#terminalstates) : `IReadOnlyList<string>` `static` -- List of terminal states.
- [ValueMissing](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#valuemissing) : `string` `static` -- The value missing state. Useful for showing a parameter resource is waiting for a value.
- [Waiting](/reference/api/csharp/aspire.hosting/knownresourcestates/fields.md#waiting) : `string` `static` -- The waiting state. Useful for showing the resource is waiting for a dependency.
