IKindResource.WithClusterLifetime
Method
type IKindResource interface { // ... omitted for brevity WithClusterLifetime(lifetime ClusterLifetime) IKindResource}Signature
method
WithClusterLifetime builderSets the cluster lifetime. When
Session (the default), the cluster is deleted on graceful shutdown or other process-exit signals on a best-effort basis. When Persistent, the cluster survives AppHost restarts and is reused on next startup.WithClusterLifetime(lifetime ClusterLifetime) IKindResourceParameters
lifetimeClusterLifetime The desired cluster lifetime.Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: