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