using Microsoft.Extensions.DependencyInjection;

namespace ScadaLink.SiteEventLogging;

public static class ServiceCollectionExtensions
{
    /// <summary>
    /// Register site event logging services (recording, purge, query).
    /// </summary>
    public static IServiceCollection AddSiteEventLogging(this IServiceCollection services)
    {
        services.AddSingleton<ISiteEventLogger, SiteEventLogger>();
        services.AddSingleton<IEventLogQueryService, EventLogQueryService>();
        services.AddHostedService<EventLogPurgeService>();
        return services;
    }

    public static IServiceCollection AddSiteEventLoggingActors(this IServiceCollection services)
    {
        // Placeholder for Akka actor registration (Phase 4+)
        return services;
    }
}
