8 references to ContainerMountAnnotation
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (3)
85var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly); 125var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false); 183var annotation = new ContainerMountAnnotation(sourcePath, target, ContainerMountType.BindMount, isReadOnly);
Aspire.Hosting.Containers.Tests (4)
ContainerMountAnnotationTests.cs (4)
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)); 36var annotation = new ContainerMountAnnotation("/var/run/docker.sock", "/var/run/docker.sock", ContainerMountType.BindMount, false);
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
74var newMount = new ContainerMountAnnotation(newName, volume.Target, ContainerMountType.Volume, volume.IsReadOnly);