2 writes to Lifetime
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
601.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Tests (1)
Dcp\ResourceSnapshotBuilderTests.cs (1)
118Lifetime = ContainerLifetime.Persistent
2 references to Lifetime
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (2)
1136return containerLifetimeAnnotation.Lifetime switch 1140_ => throw new InvalidOperationException($"Unknown container lifetime '{Enum.GetName(typeof(ContainerLifetime), containerLifetimeAnnotation.Lifetime)}'.")