7 references to ContainerMountAnnotation
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (3)
64
var annotation = new
ContainerMountAnnotation
(name, target, ContainerMountType.Volume, isReadOnly);
80
var annotation = new
ContainerMountAnnotation
(null, target, ContainerMountType.Volume, false);
99
var annotation = new
ContainerMountAnnotation
(Path.GetFullPath(source, builder.ApplicationBuilder.AppHostDirectory), target, ContainerMountType.BindMount, isReadOnly);
Aspire.Hosting.Containers.Tests (3)
ContainerMountAnnotationTests.cs (3)
17
Assert.Throws<ArgumentNullException>("source", () => new
ContainerMountAnnotation
(source, "/usr/foo", ContainerMountType.BindMount, false));
24
Assert.Throws<ArgumentException>("source", () => new
ContainerMountAnnotation
("usr/foo", "/usr/foo", ContainerMountType.BindMount, false));
30
Assert.Throws<ArgumentException>("isReadOnly", () => new
ContainerMountAnnotation
(null, "/usr/foo", ContainerMountType.Volume, true));
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
74
var newMount = new
ContainerMountAnnotation
(newName, volume.Target, ContainerMountType.Volume, volume.IsReadOnly);