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

@@ -1,13 +1,13 @@
using PARR.BLL.Contracts.Interfaces;
using PARR.Domain.Settings;
namespace PARR.TemplateGeneratorWorker.Settings
{
public 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;
}
}

View File

@@ -1,12 +1,11 @@
using Microsoft.EntityFrameworkCore;
using PARR.BLL.Domain.Mq;
using PARR.BLL.Services.Interfaces;
using PARR.Constants;
using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Models;
using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.Domain.Common.Rabbit.Messages;
using PARR.Domain.Entities.Base.History;
using PARR.Domain.Enums;
using PARR.TemplateGeneratorWorker.Services;

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Services.Interfaces;
using PARR.Core.Common.RabbitServices;
using PARR.TemplateGeneratorWorker.Settings;
namespace PARR.TemplateGeneratorWorker
@@ -7,12 +7,12 @@ namespace PARR.TemplateGeneratorWorker
{
private readonly MqSettings mqSettings;
private readonly IMqService mqService;
private readonly IRabbitService mqService;
private readonly IServiceProvider serviceProvider;
public Worker(
MqSettings mqSettings,
IMqService mqService,
IRabbitService mqService,
IServiceProvider serviceProvider
)
{