Skip to content
Docs Try Aspire

KnownResourceStates Fields

Class Fields 12 members
The set of well known resource states.
Active Section titled Active staticreadonly string
The not active state. Useful for resources without a lifetime.
public static readonly string Active
Exited Section titled Exited staticreadonly string
The exited state. Useful for showing the resource has exited.
public static readonly string Exited
FailedToStart Section titled FailedToStart staticreadonly string
The failed to start state. Useful for showing the resource has failed to start successfully.
public static readonly string FailedToStart
Finished Section titled Finished staticreadonly string
The finished state. Useful for showing the resource has finished.
public static readonly string Finished
Hidden Section titled Hidden staticreadonly string
The hidden state. Useful for hiding the resource.
public static readonly string Hidden
NotStarted Section titled NotStarted staticreadonly string
The not started state. Useful for showing the resource was created without being started.
public static readonly string NotStarted
Running Section titled Running staticreadonly string
The running state. Useful for showing the resource is running.
public static readonly string Running
RuntimeUnhealthy Section titled RuntimeUnhealthy staticreadonly string
The runtime unhealthy state. Indicates that a resource could not be started because the runtime is not in a healthy state.
public static readonly string RuntimeUnhealthy
Starting Section titled Starting staticreadonly string
The starting state. Useful for showing the resource is starting.
public static readonly string Starting
Stopping Section titled Stopping staticreadonly string
The stopping state. Useful for showing the resource is stopping.
public static readonly string Stopping
TerminalStates Section titled TerminalStates staticreadonly IReadOnlyList<string>
List of terminal states.
public static readonly IReadOnlyList<string> TerminalStates
Waiting Section titled Waiting staticreadonly string
The waiting state. Useful for showing the resource is waiting for a dependency.
public static readonly string Waiting