fix:服务商日志未打印

This commit is contained in:
Antinew 2025-07-29 23:20:10 +08:00
parent fc73d4d85c
commit aad8e086a1
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ using Fake.RabbitMQ;
using FreeRedis; using FreeRedis;
using InterfaceForward.Application.Contracts; using InterfaceForward.Application.Contracts;
using InterfaceForward.Application.Helpers; using InterfaceForward.Application.Helpers;
using InterfaceForward.Application.HostServices;
using InterfaceForward.Domain.Shared; using InterfaceForward.Domain.Shared;
using InterfaceForward.Repositories; using InterfaceForward.Repositories;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
@ -32,6 +33,8 @@ public class InterfaceForwardApplicationModule:FakeModule
}); });
context.Services.Configure<InterfaceRelayOptions>(configuration.GetSection("InterfaceRelay")); context.Services.Configure<InterfaceRelayOptions>(configuration.GetSection("InterfaceRelay"));
context.Services.AddHostedService<AppSubscribeHostService>();
var options = configuration.GetSection("Redis").Get<ConnectionStringBuilder>(); var options = configuration.GetSection("Redis").Get<ConnectionStringBuilder>();
if (options == null) if (options == null)

View File

@ -10,6 +10,7 @@ using RabbitMQ.Client.Events;
namespace InterfaceForward.Application.Rabbit; namespace InterfaceForward.Application.Rabbit;
[ExposeServices(typeof(IRabbitHandler))]
public class BatchForwardEventHandler( public class BatchForwardEventHandler(
InterfaceForwardCommon forwardCommon, InterfaceForwardCommon forwardCommon,
RabbitClient rabbitClient, RabbitClient rabbitClient,