public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var serviceProvider = _collection.BuildServiceProvider(validateScopes: validateRegistrations);
            var resolver        = new ServiceProviderRootResolver(serviceProvider, _collection);

            if (validateRegistrations)
            {
                resolver.ValidateRegistrations();
            }

            var bootstrapper = resolver.Resolve <IBootstrapper>();

            bootstrapper.Start();

            return(resolver);
        }
        public IRootResolver CreateResolver(bool validateRegistrations)
        {
            var serviceProvider = _collection.BuildServiceProvider(validateScopes: validateRegistrations);
            var resolver        = new ServiceProviderRootResolver(serviceProvider, _collection);

            if (validateRegistrations)
            {
                resolver.ValidateRegistrations();
            }

            var bootstrapper = resolver.Resolve <IBootstrapper>();

#pragma warning disable 618
            // TODO: Figure out bootstrapping alternative for 1.0
            bootstrapper.Start();
#pragma warning restore 618

            return(resolver);
        }