fix:rabbit client lifetime
This commit is contained in:
parent
75457c7236
commit
74181364ee
@ -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<RabbitClient> logger)
|
||||
ILogger<RabbitClient> logger): ISingletonDependency
|
||||
{
|
||||
public void Subscribe(ConsumeOptions consumeOptions)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user