From 74181364ee7b86ba08b70aabe26670d3a08a5fd7 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Fri, 25 Jul 2025 17:42:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Arabbit=20client=20lifetime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/InterfaceForward.Application/Rabbit/RabbitClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/InterfaceForward.Application/Rabbit/RabbitClient.cs b/src/InterfaceForward.Application/Rabbit/RabbitClient.cs index 14574ba..5937ae0 100644 --- a/src/InterfaceForward.Application/Rabbit/RabbitClient.cs +++ b/src/InterfaceForward.Application/Rabbit/RabbitClient.cs @@ -1,3 +1,4 @@ +using Fake.DependencyInjection; using Fake.RabbitMQ; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -9,7 +10,7 @@ namespace InterfaceForward.Application.Rabbit; public class RabbitClient( IRabbitMqChannelPool channelPool, IServiceScopeFactory serviceScopeFactory, - ILogger logger) + ILogger logger): ISingletonDependency { public void Subscribe(ConsumeOptions consumeOptions) {