diff --git a/src/Leanetec.EConnect.Infrastructure/DependencyInjection.cs b/src/Leanetec.EConnect.Infrastructure/DependencyInjection.cs index 7b628f4..d8fee00 100644 --- a/src/Leanetec.EConnect.Infrastructure/DependencyInjection.cs +++ b/src/Leanetec.EConnect.Infrastructure/DependencyInjection.cs @@ -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; }