/// <summary>
        /// Sets Kafka driver as broker ingress driver.
        /// </summary>
        /// <param name="brokerIngress">
        /// The broker ingress.
        /// </param>
        /// <param name="configurator">
        /// The broker ingress Kafka driver configurator.
        /// </param>
        /// <returns>
        /// This broker ingress configurator.
        /// </returns>
        /// <exception cref="ArgumentNullException">
        /// This broker ingress configurator is not specified.
        /// </exception>
        public static BrokerIngressConfigurator WithKafkaDriver(
            this BrokerIngressConfigurator brokerIngress,
            [NotNull] Action <BrokerIngressKafkaDriverConfigurator> configurator)
        {
            if (configurator == null)
            {
                throw new ArgumentNullException(nameof(configurator));
            }

            var configuration = new BrokerIngressKafkaDriverConfiguration();

            configurator(new BrokerIngressKafkaDriverConfigurator(configuration));
            IBrokerIngressDriverConfigurator driverConfigurator = brokerIngress;

            driverConfigurator.SetDriver(new BrokerIngressKafkaDriver(configuration, new DefaultConsumerRegistry()), configuration);
            return(brokerIngress);
        }
 public BrokerIngressKafkaDriverConfigurator(BrokerIngressKafkaDriverConfiguration configuration)
 {
     _configuration = configuration;
 }