Skip to content
DocsTry Aspire
DocsTry

ClusterLifetime

Enumnet10.0
📦 CommunityToolkit.Aspire.Hosting.Kind v13.4.1-beta.706
Specifies the lifetime behavior of a Kind cluster relative to the AppHost session.
namespace Aspire.Hosting;
public enum ClusterLifetime
Session= 0
The cluster is deleted when the AppHost shuts down. This is the default behavior.
Persistent= 1
The cluster survives AppHost restarts and is reused on the next startup.