public ConnectionManager(RmqConfig config, IChannelPoolFactory channelPoolFactory, IResponseMessageHandlerFactory responseMessageHandlerFactory) { this.config = config; this.channelPoolFactory = channelPoolFactory; this.responseMessageHandlerFactory = responseMessageHandlerFactory; StartInitialization(); }
public ResourceDisposer( IChannelFactory channelFactory, IConnectionFactory connectionFactory, ISubscriptionRepository subscriptionRepo, IChannelPoolFactory channelPoolFactory, RawRabbitConfiguration config) { _channelFactory = channelFactory; _connectionFactory = connectionFactory; _subscriptionRepo = subscriptionRepo; _channelPoolFactory = channelPoolFactory; _config = config; }
public PooledChannelMiddleware(IChannelPoolFactory poolFactory, PooledChannelOptions options = null) { PoolFactory = poolFactory ?? throw new ArgumentNullException(nameof(poolFactory)); PoolNameFunc = options?.PoolNameFunc; SaveInContextAction = options?.SaveInContextAction ?? ((ctx, value) => ctx.Properties.TryAdd(PipeKey.TransientChannel, value)); }
public PooledChannelMiddleware(IChannelPoolFactory poolFactory, PooledChannelOptions options = null) : base(poolFactory, options) { }