ContainerLifetime
Enum
Lifetime modes for container resources.
type ContainerLifetime string
const ( ContainerLifetimeSession ContainerLifetime = "Session" ContainerLifetimePersistent ContainerLifetime = "Persistent")Values
ContainerLifetimeSession"Session"Create the resource when the AppHost process starts and dispose of it when the AppHost process shuts down.
ContainerLifetimePersistent"Persistent"Attempt to re-use a previously created resource (based on the container name) if one exists. Do not destroy the container on AppHost process shutdown.