public void AddPortMappings(List <PortMapping> portMappings)
 {
     foreach (var port in portMappings)
     {
         PortMappings.Add(port);
     }
 }
Exemplo n.º 2
0
 public void AddPortMappings(List <PortMapping> portMappings)
 {
     ArgUtil.NotNull(portMappings, nameof(portMappings));
     foreach (var port in portMappings)
     {
         PortMappings.Add(port);
     }
 }
Exemplo n.º 3
0
 private void AddPortMappings(IList <string> arguments)
 {
     arguments.AddConditionally(
         PortMappings.Any(),
         $"{string.Join(" ", PortMappings.Select(pair => $"--publish {pair.Key}:{pair.Value}"))}");
 }