using Microsoft.Extensions.DependencyInjection;

namespace ScadaLink.ManagementService;

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddManagementService(this IServiceCollection services)
    {
        services.AddSingleton<ManagementActorHolder>();
        services.AddOptions<ManagementServiceOptions>()
            .BindConfiguration("ScadaLink:ManagementService");
        return services;
    }
}
