public void AddContainer(Container container)
 {
     if (!containers.TryAdd(container.Handle, container))
     {
         throw new WardenException("Could not add container '{0}' to collection!", container);
     }
 }
Esempio n. 2
0
 public MkdirCommand(Container container, string[] arguments)
     : base(container, arguments)
 {
     if (base.arguments.IsNullOrEmpty())
     {
         throw new ArgumentException("mkdir command requires at least one argument.");
     }
 }
Esempio n. 3
0
 public InfoBuilder(Container container)
 {
     if (container == null)
     {
         throw new ArgumentNullException("container");
     }
     this.container = container;
 }
 public void DestroyContainer(Container container)
 {
     DestroyContainer(container.Handle);
 }