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

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

            return(new AutofacServiceProvider(applicationContainer));
        }