private void InitilizeAbpApollo(AbpApolloOptions apolloOptions)
        {
            var builder        = new ConfigurationBuilder();
            var configurations = new List <IConfiguration>();
            var apolloBuilder  = builder
                                 .AddJsonFile(apolloOptions.AbpApolloJsonFile)
                                 .AddApollo(builder.Build().GetSection(apolloOptions.AbpApolloJsonRoot))
                                 .AddNamespace(ApolloConsts.DEFAULT_NAMESPACE, this)
            ;

            if (apolloOptions.AddInMemory)
            {
                if (apolloOptions.InitialData.Count() > 0)
                {
                    apolloBuilder.AddInMemoryCollection(apolloOptions.InitialData);
                }
                else
                {
                    apolloBuilder.AddInMemoryCollection();
                }
            }

            if (apolloOptions.Configuration != null)
            {
                apolloBuilder.AddConfiguration(apolloOptions.Configuration);
            }

            foreach (var namespance in apolloOptions.Namespances)
            {
                apolloBuilder.AddNamespace(namespance, this);
            }

            Configuration = apolloBuilder.Build();
        }
 public AbpApolloConfiguration(IIocManager iocManager,
                               AbpApolloOptions apolloOptions)
 {
     IocManager = iocManager;
     InitilizeAbpApollo(apolloOptions);
 }