13 references to Persistent
Aspire.Hosting (7)
ApplicationModel\ResourceExtensions.cs (1)
1147
ContainerLifetime.
Persistent
=> Lifetime.Persistent,
ContainerResourceBuilderExtensions.cs (5)
597
/// Marking a container resource to have a <see cref="ContainerLifetime.
Persistent
"/> lifetime.
619
ContainerLifetime.
Persistent
=> PersistenceMode.Persistent,
1119
/// Combining this with <see cref="ContainerLifetime.
Persistent
"/> will allow Aspire to re-use an existing container that was not
1380
/// For containers with a <see cref="ContainerLifetime.
Persistent
"/> lifetime, changing the contents of create file entries will result in the container being recreated.
1443
/// For containers with a <see cref="ContainerLifetime.
Persistent
"/> lifetime, changing the contents of create file entries will result in the container being recreated.
Dcp\ResourceSnapshotBuilder.cs (1)
95
return (container.Spec.Persistent ?? false) ? ContainerLifetime.
Persistent
: ContainerLifetime.Session;
Aspire.Hosting.Azure.Tests (1)
AzureServiceBusExtensionsTests.cs (1)
956
builder.AddAzureServiceBus("servicebus").RunAsEmulator(configure => configure.WithLifetime(ContainerLifetime.
Persistent
));
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
1032
.WithLifetime(ContainerLifetime.
Persistent
)
Aspire.Hosting.Tests (2)
Dcp\DcpExecutorTests.cs (1)
1683
.WithAnnotation(new ContainerLifetimeAnnotation { Lifetime = ContainerLifetime.
Persistent
})
Dcp\ResourceSnapshotBuilderTests.cs (1)
686
Lifetime = ContainerLifetime.
Persistent
Aspire.Hosting.TestUtilities (2)
Utils\PersistentContainerTestHelpers.cs (2)
131
return GetPropertyValue(evt, ContainerLifetimePropertyName) is ContainerLifetime.
Persistent
&&
137
Assert.Equal(ContainerLifetime.
Persistent
, containerLifetime);