Ejemplo n.º 1
0
        public static void AddCoreConfiguration(this IServiceCollection serviceCollection, IConfigurationRoot configurationRoot)
        {
            //serviceCollection.AddSingleton<ICoreConfiguration, CoreConfiguration>();

            MainCfg.SetServiceCollection(serviceCollection);
            MainCfg.SetCoreConfiguration(configurationRoot);
        }
Ejemplo n.º 2
0
 public static void AddCoreConfiguration(this IApplicationBuilder app, IConfigurationRoot configurationRoot)
 {
     MainCfg.SetServiceProvider(app.ApplicationServices);
     MainCfg.SetCoreConfiguration(configurationRoot);
 }