feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Core.Common.RabbitServices;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
internal class MqTemplateActivator : IMqTemplateActivator
|
||||
{
|
||||
private readonly MqSettings mqSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
private readonly ILogger<MqTemplateActivator> logger;
|
||||
private readonly ITransformService transformService;
|
||||
private readonly IValidatorService validatorService;
|
||||
@@ -16,7 +17,7 @@ internal class MqTemplateActivator : IMqTemplateActivator
|
||||
|
||||
public MqTemplateActivator(
|
||||
MqSettings mqSettings,
|
||||
IMqService mqService,
|
||||
IRabbitService mqService,
|
||||
ILogger<MqTemplateActivator> logger,
|
||||
ITransformService transformService,
|
||||
IValidatorService validatorService,
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PARR.BLL\PARR.BLL.csproj" />
|
||||
<ProjectReference Include="..\PARR.Constants\PARR.Constants.csproj" />
|
||||
<ProjectReference Include="..\PARR.DAL\PARR.DAL.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.Constants;
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.Job;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
using PARR.DAL.Services.Interfaces.Job;
|
||||
using PARR.Domain.Entities.Base;
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.TemplateActivator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user