Esempio n. 1
0
        public IDIContainer CreateContainer()
        {
            var serviceProvider = ContextContainer.GetValue <IServiceProvider>(ContextTypes.ServiceProvider);
            var scope           = serviceProvider.CreateScope();

            var newContainer = new DIContainerDefault(_serviceCollection, scope);

            return(newContainer);
        }
Esempio n. 2
0
        public IDIContainer CreateContainer()
        {
            var disposeProvider = false;
            var scope           = _serviceProvider.CreateScope();

            var newContainer = new DIContainerDefault(_serviceCollection, scope, disposeProvider);

            return(newContainer);
        }