feat(infrastructure): Unterstützung für generische IEConnectClient<>-Registrierung hinzugefügt
This commit is contained in:
parent
9d5bf509d5
commit
682fb772f7
@ -1,4 +1,5 @@
|
|||||||
using Microsoft.Extensions.DependencyInjection;
|
using Leanetec.EConnect.Client.Interface;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace Leanetec.EConnect.Infrastructure;
|
namespace Leanetec.EConnect.Infrastructure;
|
||||||
|
|
||||||
@ -17,6 +18,7 @@ public static class DependencyInjection
|
|||||||
Config config = new(services);
|
Config config = new(services);
|
||||||
options.Invoke(config);
|
options.Invoke(config);
|
||||||
services.ConfigureEConnectClient(config.EConnectClient);
|
services.ConfigureEConnectClient(config.EConnectClient);
|
||||||
|
services.AddScoped(typeof(IEConnectClient<>), typeof(EConnectClient<>));
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user