#region using Microsoft.Extensions.DependencyInjection; using NetDaemon.AppModel; using NordPoolManager.Interface; #endregion namespace NordPoolManager; public static class NordPoolServiceRegistration { public static IServiceCollection AddNordPool(this IServiceCollection services) { services .AddNetDaemonApp() // Singleton is safe: NordPoolPriceService holds no IHaContext/generated // entity dependency. The HA price fetch call lives in NordPoolInit. .AddSingleton() .AddTransient() .AddTransient() .AddScoped(); return services; } }