1 instantiation of ContainerLifetimeAnnotation
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
285return builder.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace);
4 references to ContainerLifetimeAnnotation
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (4)
280/// Defaults to <see cref="ContainerLifetime.Session"/> if no <see cref="ContainerLifetimeAnnotation"/> is found. 284/// The <see cref="ContainerLifetime"/> from the <see cref="ContainerLifetimeAnnotation"/> for the resource (if the annotation exists). 289if (resource.TryGetLastAnnotation<ContainerLifetimeAnnotation>(out var lifetimeAnnotation))