feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -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,10 +1,9 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Constants;
|
||||
using PARR.Core.Common.RabbitServices;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.Master.Settings;
|
||||
using System.Text.Encodings.Web;
|
||||
@@ -19,7 +18,7 @@ namespace PARR.Master.Services
|
||||
private readonly IAgentHistoryService agentHistoryService;
|
||||
private readonly OrderManageSettings orderManageSettings;
|
||||
private readonly MqSettings mqSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
|
||||
private static readonly JsonSerializerOptions jsonOptions = new JsonSerializerOptions
|
||||
{
|
||||
@@ -32,7 +31,7 @@ namespace PARR.Master.Services
|
||||
IAgentHistoryService agentHistoryService,
|
||||
OrderManageSettings orderManageSettings,
|
||||
MqSettings mqSettings,
|
||||
IMqService mqService
|
||||
IRabbitService mqService
|
||||
|
||||
)
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.Master.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