feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using PARR.Constants;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.EsppSync;
|
||||
using PARR.EsppSync.Attributes;
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Helpers;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Constants;
|
||||
using PARR.Core.Common.RabbitServices;
|
||||
using PARR.DAL.Contracts;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.NextRunServices;
|
||||
@@ -22,7 +21,7 @@ namespace PARR.EsppScheduleSync
|
||||
{
|
||||
private readonly ILogger<ScheduleSyncher> logger;
|
||||
private readonly GlobalSettings globalSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
private readonly ISyncService<EsppObjectSchedule> syncService;
|
||||
private readonly SettingsFromDb settingsFromDb;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
@@ -32,7 +31,7 @@ namespace PARR.EsppScheduleSync
|
||||
public ScheduleSyncher(
|
||||
ILogger<ScheduleSyncher> logger,
|
||||
GlobalSettings globalSettings,
|
||||
IMqService mqService,
|
||||
IRabbitService mqService,
|
||||
ISyncService<EsppObjectSchedule> syncService,
|
||||
SettingsFromDb settingsFromDb,
|
||||
IServiceProvider serviceProvider
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.EsppScheduleSync.Settings
|
||||
{
|
||||
@@ -10,10 +10,10 @@ namespace PARR.EsppScheduleSync.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