86 references to WithPersistentLifetime
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
594/// Prefer <see cref="ResourceBuilderExtensions.WithPersistentLifetime{T}(IResourceBuilder{T})"/> or
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
308containerBuilder.WithPersistentLifetime();
Aspire.Hosting.Azure.Tests (5)
AzureEventHubsExtensionsTests.cs (1)
507Lifetime.Persistent => builder.WithPersistentLifetime(),
AzureResourceOptionsTests.cs (1)
38.RunAsContainer(x => x.WithPersistentLifetime())
AzureServiceBusExtensionsTests.cs (1)
602Lifetime.Persistent => builder.WithPersistentLifetime(),
AzureStorageEmulatorFunctionalTests.cs (2)
296builder.AddAzureStorage("storage1").RunAsEmulator(container => container.WithPersistentLifetime()); 297builder.AddAzureStorage("storage2").RunAsEmulator(container => container.WithPersistentLifetime());
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
73.WithPersistentLifetime();
Aspire.Hosting.Dotnet.Tests (5)
DotnetProjectBuildCoordinatorTests.cs (1)
4210.WithPersistentLifetime()
DotnetProjectResourceTests.cs (4)
131.WithPersistentLifetime(); 1028app.WithPersistentLifetime(); 1034var source = builder.AddContainer("source", "image").WithPersistentLifetime(); 1067.WithPersistentLifetime();
Aspire.Hosting.Garnet.Tests (1)
GarnetFunctionalTests.cs (1)
260builder => builder.AddGarnet("resource").WithPersistentLifetime(),
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
283builder => builder.AddKafka("resource").WithPersistentLifetime(),
Aspire.Hosting.Keycloak.Tests (1)
KeycloakFunctionalTests.cs (1)
19builder => builder.AddKeycloak("resource").WithPersistentLifetime(),
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
213builder => builder.AddMilvus("resource").WithPersistentLifetime(),
Aspire.Hosting.MongoDB.Tests (1)
MongoDbFunctionalTests.cs (1)
557builder => builder.AddMongoDB("resource").WithPersistentLifetime(),
Aspire.Hosting.MySql.Tests (4)
MySqlFunctionalTests.cs (4)
577.AddMySql("resource", password: passwordParameter).WithPersistentLifetime() 578.WithPhpMyAdmin(c => c.WithPersistentLifetime()) 584builder.AddMySql("resource2", password: passwordParameter2).WithPersistentLifetime(); 873builder => builder.AddMySql("resource").WithPersistentLifetime(),
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
369builder => builder.AddNats("resource").WithPersistentLifetime(),
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
487builder => builder.AddOracle("resource").WithPersistentLifetime(),
Aspire.Hosting.PostgreSQL.Tests (4)
PostgresFunctionalTests.cs (4)
564.AddPostgres("resource", password: passwordParameter).WithPersistentLifetime() 565.WithPgWeb(c => c.WithPersistentLifetime()) 566.WithPgAdmin(c => c.WithPersistentLifetime()) 829builder => builder.AddPostgres("resource").WithPersistentLifetime(),
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
298builder => builder.AddQdrant("resource").WithPersistentLifetime(),
Aspire.Hosting.RabbitMQ.Tests (2)
RabbitMQFunctionalTests.cs (2)
244builder => builder.AddRabbitMQ("resource").WithPersistentLifetime(), 255builder => builder.AddRabbitMQ("resource").WithPersistentLifetime(),
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
814builder => builder.AddRedis("resource").WithPersistentLifetime(), 825builder => builder.AddRedis("resource").WithPersistentLifetime(),
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
195builder => builder.AddSeq("resource").WithPersistentLifetime(),
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
597builder => builder.AddSqlServer("resource").WithPersistentLifetime(),
Aspire.Hosting.Tests (42)
Dcp\DcpExecutorTests.cs (29)
1272.WithPersistentLifetime() 1308.WithPersistentLifetime() 1352.WithPersistentLifetime() 1632.WithPersistentLifetime() 1673.WithPersistentLifetime() 1743.WithPersistentLifetime() 1856.WithPersistentLifetime() 1911.WithPersistentLifetime() 2008.WithPersistentLifetime() 2160.WithPersistentLifetime() 2253.WithPersistentLifetime() 4544.WithPersistentLifetime() 4582.WithPersistentLifetime() 6044.WithPersistentLifetime(); 6503.WithPersistentLifetime(); 6505.WithPersistentLifetime(); 6507.WithPersistentLifetime(); 6550.WithPersistentLifetime(); 6568.WithPersistentLifetime(); 6585.WithPersistentLifetime() 6591.WithPersistentLifetime() 6605.WithPersistentLifetime() 6611.WithPersistentLifetime() 6713.WithPersistentLifetime(); 6764.WithPersistentLifetime(); 9558.WithPersistentLifetime(); 9801.WithPersistentLifetime(); 11075.WithPersistentLifetime() 11128.WithPersistentLifetime()
DebugSupportExtensionsTests.cs (1)
546.WithPersistentLifetime();
DistributedApplicationTests.cs (2)
691.WithPersistentLifetime() 2090.WithPersistentLifetime();
ExecutableResourceBuilderExtensionTests.cs (1)
99.WithPersistentLifetime();
ProjectResourceBuilderExtensionTests.cs (1)
51.WithPersistentLifetime();
ResourceBuilderLifetimeTests.cs (6)
21.WithPersistentLifetime(); 34void ConfigureLifetime() => parameter.WithPersistentLifetime(); 47.WithPersistentLifetime(); 61.WithPersistentLifetime(); 77.WithPersistentLifetime(); 122.WithPersistentLifetime();
WithVolumeTests.cs (2)
120executable.WithPersistentLifetime(); 146.WithPersistentLifetime()
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
247builder => builder.AddValkey("resource").WithPersistentLifetime(),
AzureAppService.AppHost (2)
AppHost.cs (2)
18.RunAsEmulator(c => c.WithPersistentLifetime()); 29.RunAsEmulator(c => c.WithPersistentLifetime());
AzureContainerApps.AppHost (3)
AppHost.cs (3)
21.WithPersistentLifetime() 27.RunAsEmulator(c => c.WithPersistentLifetime()); 33.RunAsEmulator(c => c.WithPersistentLifetime());
AzureVirtualNetworkEndToEnd.AppHost (1)
AppHost.cs (1)
53.RunAsContainer(c => c.WithPersistentLifetime());
ServiceBus.AppHost (1)
AppHost.cs (1)
39}).WithPersistentLifetime());
TestShop.AppHost (1)
AppHost.cs (1)
164.WithPersistentLifetime()