feat(EsppSync): доработка логики
This commit is contained in:
16
PARR.EsppSync/EsppSyncInstaller.cs
Normal file
16
PARR.EsppSync/EsppSyncInstaller.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.DAL;
|
||||
|
||||
namespace PARR.EsppSync
|
||||
{
|
||||
public static class EsppSyncInstaller
|
||||
{
|
||||
public static void InstallEsppSyncServices<EsppObject>(this IServiceCollection services, IConfiguration configuration) where EsppObject : class, IEsppObject
|
||||
{
|
||||
services.InstallDalServices(configuration);
|
||||
|
||||
services.AddTransient<ISyncService<EsppObject>, SyncService<EsppObject>>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user