feat(aihitRelationshipsSyncer): Реализована логика синхронизации связей между Unit+CI/CD
This commit is contained in:
@@ -8,10 +8,10 @@ using PARR.TemplateDistributor;
|
||||
IHost host = Host.CreateDefaultBuilder(args)
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
{
|
||||
services.InstallEsppApiServices(hostContext.Configuration);
|
||||
services.InstallBllServices(hostContext.Configuration);
|
||||
//services.InstallEsppApiServices(hostContext.Configuration);
|
||||
//services.InstallBllServices(hostContext.Configuration);
|
||||
services.InstallDalServices(hostContext.Configuration);
|
||||
services.InstallTemplateDistributorSerivces(hostContext.Configuration);
|
||||
//services.InstallTemplateDistributorSerivces(hostContext.Configuration);
|
||||
|
||||
services.AddHostedService<Worker>();
|
||||
})
|
||||
|
||||
@@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.DAL.Services.Interfaces.Unit;
|
||||
using PARR.EsppApi;
|
||||
using PARR.EsppApi.Constants;
|
||||
using PARR.EsppApi.Models.Query;
|
||||
@@ -42,6 +43,23 @@ namespace PARR.Test
|
||||
|
||||
#endregion
|
||||
|
||||
#region unit
|
||||
|
||||
|
||||
//using (var scope = serviceProvider.CreateScope())
|
||||
//{
|
||||
// var service = scope.ServiceProvider.GetService<IUnitService>();
|
||||
|
||||
|
||||
// var unit = await service.Get().Include(t => t.Parents).Include(t => t.Childs).FirstOrDefaultAsync(t => t.Id == Guid.Parse("0f89e2ec-0e4d-4de6-b990-c55e8308accf"));
|
||||
|
||||
// var parent = unit?.Parents;
|
||||
|
||||
|
||||
//}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Calendar
|
||||
|
||||
//var testCalendar = new BLL.Services.Implementations.Test(calendarService);
|
||||
|
||||
Reference in New Issue
Block a user