public ContainerBuilder CreateBuilder(IServiceCollection services)
        {
            var containerModule = new ContainerModule(configuration.GetConnectionString("Mongo"));
            var builder         = containerModule.GetBuilder();

            builder.Populate(services);
            return(builder);
        }
Beispiel #2
0
        public ContainerBuilder CreateBuilder(IServiceCollection services)
        {
            var containerModule = new ContainerModule(this._configuration.GetConnectionString("Mongo"), this._configuration.GetConnectionString("Lite"));
            var builder         = containerModule.GetBuilder();

            this.RegisterCustomServices(builder);
            builder.Populate(services);
            return(builder);
        }