using Microsoft.Extensions.DependencyInjection;
namespace Kbx.Shared.ExternalData;
public static class KbxExternalDataRegistration
{
    public static IServiceCollection AddKbxExternalData(this IServiceCollection services)
    {
        services.AddSingleton<KbxExternalDataRepository>();
        services.AddSingleton<IKbxExternalDataRefreshScheduler,KbxExternalDataRefreshScheduler>();
        services.AddSingleton<KbxExternalDataRefresherRegistry>();
        services.AddSingleton<KbxExternalDataCacheCoordinator>();
        services.AddSingleton<KrxApprovedServiceNormalizerRegistry>();
        return services;
    }
}
