protected NetCoreScope(NetCoreScope parent)
 {
     _parent     = parent;
     _scopeCache = new ScopeCache();
     Nesting     = (parent?.Nesting ?? 0) + 1;
     _rootScope  = _parent?.RootScope;
 }
        public IServiceProvider CreateServiceProvider(IWindsorContainer container)
        {
            var rootScope = NetCoreRootScope.BeginRootScope();

            return(container.Resolve <IServiceProvider>());
        }