23 references to Persistent
Aspire.Hosting (15)
ApplicationModel\ResourceExtensions.cs (5)
1133PersistenceMode.Persistent => Lifetime.Persistent, 1137PersistenceMode.ParentProcess => Lifetime.Persistent, 1147ContainerLifetime.Persistent => Lifetime.Persistent, 1162return resource.GetLifetimeType() == Lifetime.Persistent; 1167return resource.GetLifetimeType() == Lifetime.Persistent ? instance.Name : instance.Suffix;
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
97if (resource is ContainerResource && resource.GetLifetimeType() == Lifetime.Persistent)
Dcp\ContainerCreator.cs (1)
95if (container.GetLifetimeType() == Lifetime.Persistent)
Dcp\ContainerNetworkEndpointProvisioner.cs (1)
113if (containerResources.Any(resource => resource.GetLifetimeType() == Lifetime.Persistent))
Dcp\DcpExecutor.cs (1)
1182resourceReference.ModelResource.GetLifetimeType() == Lifetime.Persistent)
Dcp\DcpModelUtilities.cs (1)
28modelResource.GetLifetimeType() != Lifetime.Persistent;
Dcp\DcpNameGenerator.cs (1)
83if (resource.GetReplicaCount() > 1 && resource.GetLifetimeType() == Lifetime.Persistent)
Dcp\ExecutableConfigurationResolver.cs (1)
172if (renderedResource.ModelResource.GetLifetimeType() == Lifetime.Persistent)
Dcp\ExecutableCreator.cs (1)
378if (resource.GetLifetimeType() != Lifetime.Persistent)
ResourceBuilderExtensions.cs (2)
108return ApplyLifetime(builder, Lifetime.Persistent); 209Lifetime.Persistent => PersistenceMode.Persistent,
Aspire.Hosting.Azure.Tests (6)
AzureEventHubsExtensionsTests.cs (3)
499var lifetime = isPersistent ? Lifetime.Persistent : Lifetime.Session; 506Lifetime.Persistent => builder.WithPersistentLifetime(), 554Lifetime.Persistent => PersistenceMode.Persistent,
AzureServiceBusExtensionsTests.cs (3)
594var lifetime = isPersistent ? Lifetime.Persistent : Lifetime.Session; 601Lifetime.Persistent => builder.WithPersistentLifetime(), 994Lifetime.Persistent => PersistenceMode.Persistent,
Aspire.Hosting.Tests (2)
ResourceBuilderLifetimeTests.cs (2)
80Assert.Equal(Lifetime.Persistent, container.Resource.GetLifetimeType()); 124Assert.Equal(Lifetime.Persistent, container.Resource.GetLifetimeType());