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