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