/// <summary> /// Initializes a new instance of the <see cref="RMQPoolBase"/> class. /// </summary> /// <param name="configurationManager">The configuration manager.</param> /// <param name="factory">The factory.</param> /// <param name="maxGrowSize">Maximum size of the grow.</param> public RMQPoolBase( IRMQConfigurationManager configurationManager, IRMQSenderReceiverFactory factory, int maxGrowSize) { Guard.AgainstNull(() => configurationManager); Guard.AgainstNull(() => factory); _disposed = false; _cache = new LocalMemoryCache(); _maxGrowSize = maxGrowSize; _configurationManager = configurationManager; _factory = factory; }
/// <summary> /// Initializes a new instance of the <see cref="RMQObjectPoolAsync"/> class. /// </summary> /// <param name="factory">The factory.</param> /// <param name="instanceType">Type of the instance.</param> /// <param name="connection">The connection.</param> /// <param name="destination">The destination.</param> /// <param name="exchange">The exchange.</param> /// <param name="maxGrowSize">Maximum size of the grow.</param> public RMQObjectPoolAsync( IRMQSenderReceiverFactory factory, Type instanceType, RMQConnectionSettings connection, RMQQueueSettings destination, RMQExchangeSettings exchange, int maxGrowSize) : base(0, maxGrowSize) { _factory = factory; _instanceType = instanceType; _connection = connection; _destination = destination; _exchange = exchange; }
public RMQPool( IRMQConfigurationManager configurationManager, IRMQSenderReceiverFactory factory, int maxGrowSize = 3) : base(configurationManager, factory, maxGrowSize) { }