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