feat(Client): Erweiterung für Dependency Injection erstellen

This commit is contained in:
tekh 2025-07-07 15:29:49 +02:00
parent 1699cca53d
commit 2c73022526

View File

@ -0,0 +1,12 @@
using Microsoft.Extensions.DependencyInjection;
namespace Leanetec.EConnect.Client;
public static class DependencyInjection
{
public static IServiceCollection AddEConnectClient(this IServiceCollection services)
{
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly));
return services;
}
}