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