feat: Сервисы и модели RabbitMq разнесены согласно архитектуры

This commit is contained in:
Mikhail Trubnikov
2026-04-14 12:01:49 +10:00
parent 734c2e3c99
commit e892aa12d3
196 changed files with 589 additions and 1232 deletions

View File

@@ -2,20 +2,20 @@
using Microsoft.Extensions.Logging;
using PARR.AIHITMainSyncer.Services;
using PARR.AIHITMainSyncer.Settings;
using PARR.BLL.Services.Interfaces;
using PARR.Core.Common.RabbitServices;
namespace PARR.AIHITMainSyncer
{
internal class AihitMainSyncer : IAihitMainSyncer
{
private readonly ILogger<AihitMainSyncer> logger;
private readonly IMqService mqService;
private readonly IRabbitService mqService;
private readonly MqSettings mqSettings;
private readonly IServiceProvider serviceProvider;
public AihitMainSyncer(
ILogger<AihitMainSyncer> logger,
IMqService mqService,
IRabbitService mqService,
MqSettings mqSettings,
IServiceProvider serviceProvider
)

View File

@@ -2,10 +2,10 @@
using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Linq;
using PARR.AIHITMainSyncer.Settings;
using PARR.BLL.Domain.Mq;
using PARR.BLL.Services.Interfaces;
using PARR.DAL.Models.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Rabbit.Messages;
namespace PARR.AIHITMainSyncer.Services
{

View File

@@ -1,17 +1,17 @@
using PARR.BLL.Contracts.Interfaces;
using PARR.Domain.Settings;
namespace PARR.AIHITMainSyncer.Settings
{
internal class MqSettings : IMqSettings
{
public string HostName { get; set; } = string.Empty;
public string HostName { get; init; } = string.Empty;
public string QueueName { get; set; } = string.Empty;
public string QueueName { get; init; } = string.Empty;
public string User { get; set; } = string.Empty;
public string User { get; init; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Password { get; init; } = string.Empty;
public ushort? PrefetchCount { get; set; } = 0;
public ushort? PrefetchCount { get; init; } = 0;
}
}