public DomainExceptionConsumer InitializeKafka(ConsumerSetting setting)
        {
            InitializeENode();

            Consumer = new Consumer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
        public DomainEventPublisher InitializeKafka(ProducerSetting setting)
        {
            InitializeENode();

            Producer = new Producer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
Ejemplo n.º 3
0
        public ApplicationMessageConsumer InitializeKafka(ConsumerSetting setting)
        {
            InitializeENode();

            Consumer = new Consumer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
Ejemplo n.º 4
0
        public DomainEventConsumer InitializeKafka(ConsumerSetting setting, bool sendEventHandledMessage = true)
        {
            InitializeENode(sendEventHandledMessage);

            Consumer = new Consumer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
        public ApplicationMessagePublisher InitializeKafka(ProducerSetting setting, Dictionary <string, object> kafkaConfig = null)
        {
            InitializeENode();

            Producer = new Producer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
Ejemplo n.º 6
0
        public CommandService InitializeKafka(ProducerSetting setting = null, CommandResultProcessor commandResultProcessor = null)
        {
            InitializeENode();

            _commandResultProcessor = commandResultProcessor;

            Producer = new Producer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }