Files
parr_api/PARR.EsppSync/EsppSyncInstaller.cs
2023-11-22 12:04:33 +10:00

17 lines
522 B
C#

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>>();
}
}
}