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)
73.WithPersistentLifetime();
Aspire.Hosting.Dotnet.Tests (5)
DotnetProjectBuildCoordinatorTests.cs (1)
3226.WithPersistentLifetime()
DotnetProjectResourceTests.cs (4)
130.WithPersistentLifetime(); 999app.WithPersistentLifetime(); 1005var source = builder.AddContainer("source", "image").WithPersistentLifetime(); 1038.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)
1227.WithPersistentLifetime() 1263.WithPersistentLifetime() 1307.WithPersistentLifetime() 1586.WithPersistentLifetime() 1624.WithPersistentLifetime() 1662.WithPersistentLifetime() 1781.WithPersistentLifetime() 1823.WithPersistentLifetime() 4056.WithPersistentLifetime() 4094.WithPersistentLifetime() 5436.WithPersistentLifetime(); 5816.WithPersistentLifetime(); 5818.WithPersistentLifetime(); 5820.WithPersistentLifetime(); 5863.WithPersistentLifetime(); 5881.WithPersistentLifetime(); 5898.WithPersistentLifetime() 5904.WithPersistentLifetime() 5918.WithPersistentLifetime() 5924.WithPersistentLifetime() 6026.WithPersistentLifetime(); 6077.WithPersistentLifetime(); 8479.WithPersistentLifetime(); 8722.WithPersistentLifetime(); 9991.WithPersistentLifetime() 10044.WithPersistentLifetime()
DebugSupportExtensionsTests.cs (1)
471.WithPersistentLifetime();
DistributedApplicationTests.cs (2)
618.WithPersistentLifetime() 2017.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()