feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
|
||||
namespace PARR.TemplateUpdater.Services
|
||||
{
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Extensions;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.NextRunServices;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.DAL.Services.Interfaces.Job;
|
||||
using PARR.DAL.Services.Interfaces.Unit;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using PARR.Domain.Enums;
|
||||
|
||||
namespace PARR.TemplateUpdater.Services
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.TemplateUpdater.Settings
|
||||
{
|
||||
@@ -9,10 +9,10 @@ namespace PARR.TemplateUpdater.Settings
|
||||
|
||||
internal class TemplatesUpdaterMq : 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,7 +1,8 @@
|
||||
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;
|
||||
using PARR.TemplateUpdater.Services;
|
||||
using PARR.TemplateUpdater.Settings;
|
||||
|
||||
@@ -10,14 +11,14 @@ namespace PARR.TemplateUpdater
|
||||
internal class TemplateUpdater : ITemplateUpdater
|
||||
{
|
||||
private readonly MqSettings mqSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
private readonly ILogger<TemplateUpdater> logger;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
private readonly ITransformService transformService;
|
||||
|
||||
public TemplateUpdater(
|
||||
MqSettings mqSettings,
|
||||
IMqService mqService,
|
||||
IRabbitService mqService,
|
||||
ILogger<TemplateUpdater> logger,
|
||||
IServiceProvider serviceProvider,
|
||||
ITransformService transformService
|
||||
|
||||
Reference in New Issue
Block a user