Корректировка имен колонок в АИХ ИТ
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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("=== === === === Конец синхронизации === === === ===");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user