feat(infrastructure): Unterstützung für generische IEConnectClient<>-Registrierung hinzugefügt

This commit is contained in:
Developer 02 2025-08-12 20:10:18 +02:00
parent 9d5bf509d5
commit 682fb772f7

View File

@ -1,4 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Leanetec.EConnect.Client.Interface;
using Microsoft.Extensions.DependencyInjection;
namespace Leanetec.EConnect.Infrastructure;
@ -17,6 +18,7 @@ public static class DependencyInjection
Config config = new(services);
options.Invoke(config);
services.ConfigureEConnectClient(config.EConnectClient);
services.AddScoped(typeof(IEConnectClient<>), typeof(EConnectClient<>));
return services;
}