18 references to WithLifetime
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
253storageResource = storageResource.RunAsEmulator(c => c.WithLifetime(lifetime));
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
403sqlEdgeResource = sqlEdgeResource.WithLifetime(lifetime);
Aspire.Hosting.Azure.Tests (3)
AzureEventHubsExtensionsTests.cs (1)
514builder.WithLifetime(lifetime);
AzureResourceOptionsTests.cs (1)
36.RunAsContainer(x => x.WithLifetime(ContainerLifetime.Persistent))
AzureServiceBusExtensionsTests.cs (1)
610builder.WithLifetime(lifetime);
Aspire.Hosting.MySql.Tests (3)
MySqlFunctionalTests.cs (3)
564.AddMySql("resource", password: passwordParameter).WithLifetime(ContainerLifetime.Persistent) 565.WithPhpMyAdmin(c => c.WithLifetime(ContainerLifetime.Persistent)) 571builder.AddMySql("resource2", password: passwordParameter2).WithLifetime(ContainerLifetime.Persistent);
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
555.AddPostgres("resource", password: passwordParameter).WithLifetime(ContainerLifetime.Persistent) 556.WithPgWeb(c => c.WithLifetime(ContainerLifetime.Persistent)) 557.WithPgAdmin(c => c.WithLifetime(ContainerLifetime.Persistent))
AzureAppService.AppHost (2)
Program.cs (2)
16.RunAsEmulator(c => c.WithLifetime(ContainerLifetime.Persistent)); 27.RunAsEmulator(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)