feat(templateMatcher): init. сделан воркер, контроллер. перенесена логика из TemplateTaskGenerator
This commit is contained in:
34
PARR.TemplateMatcher/Settings/MqSettings.cs
Normal file
34
PARR.TemplateMatcher/Settings/MqSettings.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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
|
||||
{
|
||||
public class MqSettings
|
||||
{
|
||||
public TemplateMatcher TemplateMatcher { get; set; } = new TemplateMatcher();
|
||||
public TemplateGenerator TemplateGenerator { get; set; } = new TemplateGenerator();
|
||||
}
|
||||
|
||||
internal class TemplateMatcher : 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;
|
||||
}
|
||||
|
||||
internal class TemplateGenerator : 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