83 references to WithPersistentLifetime
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
567/// 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)
70.WithPersistentLifetime();
Aspire.Hosting.Dotnet.Tests (5)
DotnetProjectBuildCoordinatorTests.cs (1)
3136.WithPersistentLifetime()
DotnetProjectResourceTests.cs (4)
139.WithPersistentLifetime(); 1021app.WithPersistentLifetime(); 1027var source = builder.AddContainer("source", "image").WithPersistentLifetime(); 1060.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 (39)
Dcp\DcpExecutorTests.cs (26)
1226.WithPersistentLifetime() 1262.WithPersistentLifetime() 1306.WithPersistentLifetime() 1585.WithPersistentLifetime() 1623.WithPersistentLifetime() 1661.WithPersistentLifetime() 1780.WithPersistentLifetime() 1822.WithPersistentLifetime() 4055.WithPersistentLifetime() 4093.WithPersistentLifetime() 5435.WithPersistentLifetime(); 5815.WithPersistentLifetime(); 5817.WithPersistentLifetime(); 5819.WithPersistentLifetime(); 5862.WithPersistentLifetime(); 5880.WithPersistentLifetime(); 5897.WithPersistentLifetime() 5903.WithPersistentLifetime() 5917.WithPersistentLifetime() 5923.WithPersistentLifetime() 6025.WithPersistentLifetime(); 6076.WithPersistentLifetime(); 8478.WithPersistentLifetime(); 8721.WithPersistentLifetime(); 9990.WithPersistentLifetime() 10043.WithPersistentLifetime()
DebugSupportExtensionsTests.cs (1)
455.WithPersistentLifetime();
DistributedApplicationTests.cs (2)
617.WithPersistentLifetime() 2012.WithPersistentLifetime();
ExecutableResourceBuilderExtensionTests.cs (1)
99.WithPersistentLifetime();
ProjectResourceBuilderExtensionTests.cs (1)
50.WithPersistentLifetime();
ResourceBuilderLifetimeTests.cs (6)
21.WithPersistentLifetime(); 34void ConfigureLifetime() => parameter.WithPersistentLifetime(); 47.WithPersistentLifetime(); 61.WithPersistentLifetime(); 77.WithPersistentLifetime(); 122.WithPersistentLifetime();
WithVolumeTests.cs (2)
177executable.WithPersistentLifetime(); 203.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)
79.WithPersistentLifetime()