fix:服务商日志未打印
This commit is contained in:
parent
fc73d4d85c
commit
aad8e086a1
@ -7,6 +7,7 @@ using Fake.RabbitMQ;
|
||||
using FreeRedis;
|
||||
using InterfaceForward.Application.Contracts;
|
||||
using InterfaceForward.Application.Helpers;
|
||||
using InterfaceForward.Application.HostServices;
|
||||
using InterfaceForward.Domain.Shared;
|
||||
using InterfaceForward.Repositories;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
@ -33,6 +34,8 @@ public class InterfaceForwardApplicationModule:FakeModule
|
||||
|
||||
context.Services.Configure<InterfaceRelayOptions>(configuration.GetSection("InterfaceRelay"));
|
||||
|
||||
context.Services.AddHostedService<AppSubscribeHostService>();
|
||||
|
||||
var options = configuration.GetSection("Redis").Get<ConnectionStringBuilder>();
|
||||
if (options == null)
|
||||
throw new FakeException("未找到Redis相关配置,请检查配置文件中是否包含名为Redis的节点");
|
||||
|
||||
@ -10,6 +10,7 @@ using RabbitMQ.Client.Events;
|
||||
|
||||
namespace InterfaceForward.Application.Rabbit;
|
||||
|
||||
[ExposeServices(typeof(IRabbitHandler))]
|
||||
public class BatchForwardEventHandler(
|
||||
InterfaceForwardCommon forwardCommon,
|
||||
RabbitClient rabbitClient,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user