3 instantiations of Network
Aspire.Hosting.Docker (2)
DockerComposePublishingContext.cs (1)
68var defaultNetwork = new Network
DockerComposeResourceExtensions.cs (1)
38var network = new ComposeNetwork
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
213file.AddNetwork(new Network { Name = "custom-network", Driver = "host" });
8 references to Network
Aspire.Hosting.Docker (7)
DockerComposePublishingContext.cs (1)
68var defaultNetwork = new Network
DockerComposeResourceExtensions.cs (3)
6using ComposeNetwork = Aspire.Hosting.Docker.Resources.ComposeNodes.Network; 33Action<ComposeNetwork>? configure = null) 38var network = new ComposeNetwork
Resources\ComposeFile.cs (3)
61/// Each key in the dictionary represents the name of the network, and the value is an instance of the <see cref="Network"/> class, 65public Dictionary<string, Network> Networks { get; set; } = []; 115public ComposeFile AddNetwork(Network network)
Aspire.Hosting.Docker.Tests (1)
DockerComposeResourceExtensionsTests.cs (1)
22var network = Assert.Single(composeFile.Networks).Value;