23 references to Persistent
Aspire.Hosting (6)
ContainerResourceBuilderExtensions.cs (4)
391/// Marking a container resource to have a <see cref="ContainerLifetime.Persistent"/> lifetime. 544/// Combining this with <see cref="ContainerLifetime.Persistent"/> will allow Aspire to re-use an existing container that was not 718/// For containers with a <see cref="ContainerLifetime.Persistent"/> lifetime, changing the contents of create file entries will result in the container being recreated. 781/// For containers with a <see cref="ContainerLifetime.Persistent"/> lifetime, changing the contents of create file entries will result in the container being recreated.
Dcp\DcpExecutor.cs (1)
1130if (container.GetContainerLifetimeType() == ContainerLifetime.Persistent)
Dcp\ResourceSnapshotBuilder.cs (1)
90return (container.Spec.Persistent ?? false) ? ContainerLifetime.Persistent : ContainerLifetime.Session;
Aspire.Hosting.Azure.Tests (3)
AzureEventHubsExtensionsTests.cs (1)
510var lifetime = isPersistent ? ContainerLifetime.Persistent : ContainerLifetime.Session;
AzureResourceOptionsTests.cs (1)
36.RunAsContainer(x => x.WithLifetime(ContainerLifetime.Persistent))
AzureServiceBusExtensionsTests.cs (1)
606var lifetime = isPersistent ? ContainerLifetime.Persistent : ContainerLifetime.Session;
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))
Aspire.Hosting.Tests (1)
DistributedApplicationTests.cs (1)
314.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)