Example #1
0
        private TinyDIContainer(TinyDIContainer parentContainer)
        {
            _parentContainer = parentContainer;

            // Use the same synchronization object in descendant containers.
            // It's required to e.g. ensure that singleton dependencies are resolved only once.
            _syncRoot = parentContainer._syncRoot;
        }
Example #2
0
 public Scope(TinyDIContainer mostNestedContainer)
 {
     _mostNestedContainer = mostNestedContainer;
 }