ContainerLifetimeAnnotation Class

Definition

Annotation that controls the lifetime of a container resource.

C#
public sealed class ContainerLifetimeAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
Inheritance
ContainerLifetimeAnnotation
Implements

Constructors

Properties

Lifetime

Gets or sets the lifetime type for the container resource.

Applies to

Product Versions
.NET Aspire 9.0.0, 9.1.0