public IDependencyResolverScope CreateChildScope()
        {
            var childScope = new DependencyResolverScope(_componentTypes, new ReadOnlyDictionary <Type, object>(_scopedInstances));

            Track(childScope);
            return(childScope);
        }
示例#2
0
        public IDependencyResolverScope CreateChildScope()
        {
            var childScope = new DependencyResolverScope(_resolvableTypes.Value, _emptyScopedInstances);

            Track(childScope);
            return(childScope);
        }