feat(job-auto-control): Переделал согласно новой структуры. Отправляет задания в matcher.

This commit is contained in:
Mikhail Trubnikov
2025-12-09 08:40:05 +10:00
parent 5e3da5bf08
commit 24759bb3e0
6 changed files with 59 additions and 180 deletions

View File

@@ -4,11 +4,10 @@ namespace PARR.JobAutoControl.Settings
{
internal class MqSettings
{
public Generator Generator { get; set; }
public Activator Activator { get; set; }
public TemplateMatcher TemplateMatcher { get; set; } = new TemplateMatcher();
}
internal class Generator : IMqSettings
internal class TemplateMatcher : IMqSettings
{
public string HostName { get; set; } = string.Empty;
public string QueueName { get; set; } = string.Empty;
@@ -17,14 +16,6 @@ namespace PARR.JobAutoControl.Settings
public ushort? PrefetchCount { get; set; } = 0;
}
internal class Activator : 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;
}
}