feat: Сервисы и модели RabbitMq разнесены согласно архитектуры

This commit is contained in:
Mikhail Trubnikov
2026-04-14 12:01:49 +10:00
parent 734c2e3c99
commit e892aa12d3
196 changed files with 589 additions and 1232 deletions

View File

@@ -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
)
{

View File

@@ -1,6 +1,5 @@
using Microsoft.EntityFrameworkCore;
using PARR.AIHITMainLoader.Models;
using PARR.BLL.Domain.Mq;
namespace PARR.AIHITMainLoader.Context
{

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
namespace PARR.AIHITMainLoader.Models
{

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

View File

@@ -1,4 +1,4 @@
using PARR.BLL.Domain.Mq;
using PARR.Domain.Common.Rabbit.Messages;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

View File

@@ -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>

View File

@@ -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;
}
}