7 instantiations of ContainerMountAnnotation
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (3)
64var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly);
80var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false);
99var annotation = new ContainerMountAnnotation(Path.GetFullPath(source, builder.ApplicationBuilder.AppHostDirectory), target, ContainerMountType.BindMount, isReadOnly);
Aspire.Hosting.Containers.Tests (3)
ContainerMountAnnotationTests.cs (3)
17Assert.Throws<ArgumentNullException>("source", () => new ContainerMountAnnotation(source, "/usr/foo", ContainerMountType.BindMount, false));
24Assert.Throws<ArgumentException>("source", () => new ContainerMountAnnotation("usr/foo", "/usr/foo", ContainerMountType.BindMount, false));
30Assert.Throws<ArgumentException>("isReadOnly", () => new ContainerMountAnnotation(null, "/usr/foo", ContainerMountType.Volume, true));
Aspire.Playground.Tests (1)
68 references to ContainerMountAnnotation
Aspire.Hosting (9)
ContainerResourceBuilderExtensions.cs (3)
64var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly);
80var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false);
99var annotation = new ContainerMountAnnotation(Path.GetFullPath(source, builder.ApplicationBuilder.AppHostDirectory), target, ContainerMountType.BindMount, isReadOnly);
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Tests (16)
Aspire.Hosting.Containers.Tests (2)
Aspire.Hosting.Garnet.Tests (4)
Aspire.Hosting.Kafka.Tests (4)
Aspire.Hosting.Keycloak.Tests (6)
Aspire.Hosting.MySql.Tests (4)
Aspire.Hosting.Nats.Tests (2)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.PostgreSQL.Tests (6)
Aspire.Hosting.Redis.Tests (4)
Aspire.Hosting.Valkey.Tests (4)
Aspire.Playground.Tests (3)