2023-11-22 12:04:33 +10:00
|
|
|
|
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
|
|
|
|
|
|
{
|
2026-04-30 10:35:31 +10:00
|
|
|
|
services.AddDalServices(configuration);
|
2023-11-22 12:04:33 +10:00
|
|
|
|
|
|
|
|
|
|
services.AddTransient<ISyncService<EsppObject>, SyncService<EsppObject>>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|