feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using PARR.Constants;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.EsppSync;
|
||||
|
||||
namespace PARR.EsppTemplateSync.Domain
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.EsppTemplateSync.Settings
|
||||
{
|
||||
@@ -13,11 +13,11 @@ namespace PARR.EsppTemplateSync.Settings
|
||||
|
||||
internal class MqSettings : 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;
|
||||
public string HostName { get; init; } = string.Empty;
|
||||
public string QueueName { get; init; } = string.Empty;
|
||||
public string User { get; init; } = string.Empty;
|
||||
public string Password { get; init; } = string.Empty;
|
||||
public ushort? PrefetchCount { get; init; } = 0;
|
||||
}
|
||||
|
||||
internal class StorageSettings
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Core.Common.RabbitServices;
|
||||
using PARR.DAL.Contracts;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.EsppSync;
|
||||
@@ -12,7 +12,7 @@ namespace PARR.EsppTemplateSync
|
||||
{
|
||||
private readonly ILogger<TemplateMQSyncer> logger;
|
||||
private readonly GlobalSettings globalSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
private readonly SettingsFromDb settingsFromDb;
|
||||
private readonly ISyncService<EsppObjectTemplate> syncService;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace PARR.EsppTemplateSync
|
||||
public TemplateMQSyncer(
|
||||
ILogger<TemplateMQSyncer> logger,
|
||||
GlobalSettings globalSettings,
|
||||
IMqService mqService,
|
||||
IRabbitService mqService,
|
||||
SettingsFromDb settingsFromDb,
|
||||
ISyncService<EsppObjectTemplate> syncService
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user