feat(Client): Erweiterung für Dependency Injection erstellen
This commit is contained in:
parent
1699cca53d
commit
2c73022526
12
src/Leanetec.EConnect.Client/DependencyInjection.cs
Normal file
12
src/Leanetec.EConnect.Client/DependencyInjection.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user