Example #1
0
        /// <summary>
        /// CookedRabbit RabbitBurrow constructor.
        /// </summary>
        /// <param name="rabbitSeasoning"></param>
        /// <param name="rchanp"></param>
        /// <param name="rconp"></param>
        /// <param name="logger"></param>
        public RabbitBurrow(RabbitSeasoning rabbitSeasoning, IRabbitChannelPool rchanp, IRabbitConnectionPool rconp, ILogger logger = null)
        {
            _seasoning = rabbitSeasoning;

            Transmission = new RabbitSerializeService(_seasoning, rchanp, rconp, logger);
            Maintenance  = new RabbitMaintenanceService(_seasoning, rchanp, rconp, logger);
        }
Example #2
0
        /// <summary>
        /// CookedRabbit RabbitBurrow constructor.
        /// </summary>
        /// <param name="rabbitSeasoning"></param>
        /// <param name="logger"></param>
        public RabbitBurrow(RabbitSeasoning rabbitSeasoning, ILogger logger = null)
        {
            _seasoning = rabbitSeasoning;

            var channelPool = Factories.CreateRabbitChannelPoolAsync(_seasoning).GetAwaiter().GetResult();

            Transmission = new RabbitSerializeService(_seasoning, channelPool, logger);
            Maintenance  = new RabbitMaintenanceService(_seasoning, channelPool, logger);
        }