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