3 writes to Lifetime
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
504return builder.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = lifetime }, ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Tests (2)
PersistentContainerWarningTests.cs (2)
29container.Annotations.Add(new ContainerLifetimeAnnotation { Lifetime = ContainerLifetime.Persistent }); 53container.Annotations.Add(new ContainerLifetimeAnnotation { Lifetime = ContainerLifetime.Persistent });
8 references to Lifetime
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
999return lifetimeAnnotation.Lifetime;
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
281lifetime = lifetimeAnnotation.Lifetime;
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
312Assert.Equal(ContainerLifetime.Persistent, lifetimeAnnotation.Lifetime);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
446lifetime = lifetimeAnnotation.Lifetime;
Aspire.Hosting.Azure.Tests (4)
AzureEventHubsExtensionsTests.cs (2)
524Assert.Equal(lifetime, sbLifetimeAnnotation?.Lifetime); 525Assert.Equal(lifetime, sqlLifetimeAnnotation?.Lifetime);
AzureServiceBusExtensionsTests.cs (2)
621Assert.Equal(lifetime, sbLifetimeAnnotation?.Lifetime); 622Assert.Equal(lifetime, sqlLifetimeAnnotation?.Lifetime);