private static DiBootstrapper AddDiBootstrapper <TStartupModule>(IServiceCollection services)
            where TStartupModule : DiModule
        {
            var abpBootstrapper = DiBootstrapper.Create <TStartupModule>(services);

            abpBootstrapper.Initialize();
            return(abpBootstrapper);
        }
        public ContainerBuilder CreateBuilder(IServiceCollection services)
        {
            var abpBootstrapper = DiBootstrapper.Create <TStartupModule>(services);

            abpBootstrapper.Initialize();
            abpBootstrapper.ContainerBuilder.Populate(services);
            _configurationAction(abpBootstrapper.ContainerBuilder);
            return(abpBootstrapper.ContainerBuilder);
        }
        private static IServiceProvider AutofacServiceProvider(IServiceCollection services, DiBootstrapper diBootstrapper)
        {
            diBootstrapper.ContainerBuilder.Populate(services);
            var applicationContainer = diBootstrapper.ContainerBuilder.Build();

            return(new AutofacServiceProvider(applicationContainer));
        }