using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Kbx.Shared.Configuration;

public static class KbxConfigurationRegistration
{
    public static IServiceCollection AddKbxConfigurationGovernance(this IServiceCollection services, IConfiguration configuration)
    {
        services.AddSingleton(new KbxConfigurationStartupValidator(configuration));
        return services;
    }
}
