using Microsoft.Extensions.DependencyInjection; namespace Infrastructure.Configuration; public static class ConfigurationExtensions { public static IServiceCollection AddConfigurationServices(this IServiceCollection services) { // Register the base JSON provider services.AddSingleton(); // Register the cached provider as the implementation of IConfigurationProvider services.AddSingleton(); // Register config manager and initializer services.AddSingleton(); services.AddSingleton(); return services; } }