コード例 #1
0
        public static void AddConfigurationProvider(this IServiceCollection services, IConfiguration configuration)
        {
            ConfigLoader loader = new ConfigLoader();

            configProvider = loader.GetConfigProvider(configuration);
            services.AddSingleton <IConfigProvider>(configProvider);
        }