feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user