7 references to ContainerMountAnnotation
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (3)
53var annotation = new ContainerMountAnnotation(name, target, ContainerMountType.Volume, isReadOnly); 66var annotation = new ContainerMountAnnotation(null, target, ContainerMountType.Volume, false); 81var 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)
Infrastructure\DistributedApplicationExtensions.cs (1)
74var newMount = new ContainerMountAnnotation(newName, volume.Target, ContainerMountType.Volume, volume.IsReadOnly);