feat(templateMatcher): добавлен метод UpdateTemplatesForJob, MatchTemplates переименован в SyncTemplatesForJob+расширена логика работы.
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PARR.TemplateMatcher.Settings
|
||||
{
|
||||
@@ -12,6 +6,7 @@ namespace PARR.TemplateMatcher.Settings
|
||||
{
|
||||
public TemplateMatcher TemplateMatcher { get; set; } = new TemplateMatcher();
|
||||
public TemplateGenerator TemplateGenerator { get; set; } = new TemplateGenerator();
|
||||
public TemplateUpdater TemplateUpdater { get; set; } = new TemplateUpdater();
|
||||
}
|
||||
|
||||
internal class TemplateMatcher : IMqSettings
|
||||
@@ -31,4 +26,13 @@ namespace PARR.TemplateMatcher.Settings
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public ushort? PrefetchCount { get; set; } = 0;
|
||||
}
|
||||
|
||||
internal class TemplateUpdater : IMqSettings
|
||||
{
|
||||
public string HostName { get; set; } = string.Empty;
|
||||
public string QueueName { get; set; } = string.Empty;
|
||||
public string User { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public ushort? PrefetchCount { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user