16 references to WithLifetime
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
252storageResource = storageResource.RunAsEmulator(c => c.WithLifetime(lifetime));
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
402sqlEdgeResource = sqlEdgeResource.WithLifetime(lifetime);
Aspire.Hosting.Azure.Tests (3)
AzureEventHubsExtensionsTests.cs (1)
571builder.WithLifetime(lifetime);
AzureResourceOptionsTests.cs (1)
37.RunAsContainer(x => x.WithLifetime(ContainerLifetime.Persistent))
AzureServiceBusExtensionsTests.cs (1)
706builder.WithLifetime(lifetime);
Aspire.Hosting.MySql.Tests (3)
MySqlFunctionalTests.cs (3)
485.AddMySql("resource", password: passwordParameter).WithLifetime(ContainerLifetime.Persistent) 486.WithPhpMyAdmin(c => c.WithLifetime(ContainerLifetime.Persistent)) 492builder.AddMySql("resource2", password: passwordParameter2).WithLifetime(ContainerLifetime.Persistent);
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
475.AddPostgres("resource", password: passwordParameter).WithLifetime(ContainerLifetime.Persistent) 476.WithPgWeb(c => c.WithLifetime(ContainerLifetime.Persistent)) 477.WithPgAdmin(c => c.WithLifetime(ContainerLifetime.Persistent))
AzureContainerApps.AppHost (3)
Program.cs (3)
21.WithLifetime(ContainerLifetime.Persistent) 27.RunAsEmulator(c => c.WithLifetime(ContainerLifetime.Persistent)); 33.RunAsEmulator(c => c.WithLifetime(ContainerLifetime.Persistent));
ServiceBus.AppHost (1)
Program.cs (1)
37}).WithLifetime(ContainerLifetime.Persistent));
TestShop.AppHost (1)
Program.cs (1)
57.WithLifetime(ContainerLifetime.Persistent)