feat: Сервисы и модели RabbitMq разнесены согласно архитектуры
This commit is contained in:
@@ -4,6 +4,7 @@ using PARR.AIHITMainLoader.Models;
|
||||
using PARR.AIHITMainLoader.Services;
|
||||
using PARR.AIHITMainLoader.Settings;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.Core.Common.RabbitServices;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Json;
|
||||
|
||||
@@ -16,7 +17,7 @@ namespace PARR.AIHITMainLoader
|
||||
private readonly WorkerSettings workerSettings;
|
||||
private readonly LoaderSettings loaderSettings;
|
||||
private readonly MqSettings mqSettings;
|
||||
private readonly IMqService mqService;
|
||||
private readonly IRabbitService mqService;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
|
||||
private static readonly JsonSerializerOptions jsonOptions = new JsonSerializerOptions
|
||||
@@ -30,7 +31,7 @@ namespace PARR.AIHITMainLoader
|
||||
WorkerSettings workerSettings,
|
||||
LoaderSettings loaderSettings,
|
||||
MqSettings mqSettings,
|
||||
IMqService mqService,
|
||||
IRabbitService mqService,
|
||||
IServiceProvider serviceProvider
|
||||
)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.AIHITMainLoader.Models;
|
||||
using PARR.BLL.Domain.Mq;
|
||||
|
||||
namespace PARR.AIHITMainLoader.Context
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
|
||||
namespace PARR.AIHITMainLoader.Models
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using PARR.BLL.Domain.Mq;
|
||||
using PARR.Domain.Common.Rabbit.Messages;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PARR.BLL\PARR.BLL.csproj" />
|
||||
<ProjectReference Include="..\PARR.Core\PARR.Core.csproj" />
|
||||
<ProjectReference Include="..\PARR.Domain\PARR.Domain.csproj" />
|
||||
<ProjectReference Include="..\PARR.Infrastructure\PARR.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
using PARR.Domain.Settings;
|
||||
|
||||
namespace PARR.AIHITMainLoader.Settings
|
||||
{
|
||||
internal class MqSettings : IMqSettings
|
||||
{
|
||||
public string HostName { get; set; } = string.Empty;
|
||||
public string HostName { get; init; } = string.Empty;
|
||||
|
||||
public string QueueName { get; set; } = string.Empty;
|
||||
public string QueueName { get; init; } = string.Empty;
|
||||
|
||||
public string User { get; set; } = string.Empty;
|
||||
public string User { get; init; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string Password { get; init; } = string.Empty;
|
||||
|
||||
public ushort? PrefetchCount { get; set; } = 0;
|
||||
public ushort? PrefetchCount { get; init; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user