Beispiel #1
0
 private ContainerImpl(string name, ContainerImpl parent)
     : this(name)
 {
     if (null == parent)
     {
         throw new ArgumentNullException("parent");
     }
     _parent = parent;
 }
Beispiel #2
0
        public IContainer Create(string childContainerName = null)
        {
            IContainer result;

            lock (_syncRoot)
            {
                ThrowIfDisposed();
                result = new ContainerImpl(childContainerName, this);
                _disposables.Add(result);
            }
            return(result);
        }