17 references to Volume
Aspire.Hosting (4)
ApplicationModel\ContainerMountAnnotation.cs (1)
37if (type == ContainerMountType.Volume && string.IsNullOrEmpty(source) && isReadOnly)
ContainerResourceBuilderExtensions.cs (2)
64var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly); 80var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false);
Publishing\ManifestPublishingContext.cs (1)
615var volumes = mounts.Where(mounts => mounts.Type == ContainerMountType.Volume).ToList();
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
556ContainerMountType.Volume => ($"{volumeIndex}", $"v{volumeIndex}"), 985ContainerMountType.Volume => $"{{{resource.Name}.volumes.{index}.storage}}",
Aspire.Hosting.Azure.Tests (4)
AzureEventHubsExtensionsTests.cs (2)
145Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type); 162Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
AzureResourceExtensionsTests.cs (2)
88Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type); 114Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
Aspire.Hosting.Containers.Tests (1)
ContainerMountAnnotationTests.cs (1)
30Assert.Throws<ArgumentException>("isReadOnly", () => new ContainerMountAnnotation(null, "/usr/foo", ContainerMountType.Volume, true));
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
134Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
57Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
273Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
134Assert.Equal(ContainerMountType.Volume, volumeAnnotation.Type);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
54.Where(m => m.Type == ContainerMountType.Volume && !string.IsNullOrEmpty(m.Source)) 74var newMount = new ContainerMountAnnotation(newName, volume.Target, ContainerMountType.Volume, volume.IsReadOnly);