Корректировка имен колонок в АИХ ИТ

This commit is contained in:
Mikhail Kuznetsov
2023-08-10 16:43:01 +10:00
parent 39b1333969
commit 2cc8af6af5
10 changed files with 46 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
using Microsoft.EntityFrameworkCore;
using PARR.AIHIT;
using PARR.DAL;
using PARR.Mail;
@@ -15,7 +16,6 @@ IHost host = Host.CreateDefaultBuilder(args)
hostContext.Configuration.GetSection(nameof(WorkerSettings)).Bind(workerSettings);
services.AddSingleton(workerSettings);
services.InstallMailServices(hostContext.Configuration);
services.InstallDalServices(hostContext.Configuration);
services.InstallerSyncerServices(hostContext.Configuration);

View File

@@ -29,14 +29,14 @@ namespace PARR.Worker
var services = scope.ServiceProvider;
var syncer = services.GetService<ISyncher>();
if (syncer != null) await syncer.InvokeAsync();
if (syncer != null) await syncer.InvokeFromDatabase();
//var hosts = await hostService.Get().ToListAsync();
//foreach ( var host in hosts ) { logger.LogInformation($"{host.HostName}"); }
//await attachmentUploader.UploadAsync();
//logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now);
//await attachmentUploader.UploadAsync();
//logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now);
logger.LogInformation("=== === === === Конец синхронизации === === === ===");