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);
        }
예제 #3
0
        public ApplicationMessageConsumer InitializeKafka(ConsumerSetting setting)
        {
            InitializeENode();

            Consumer = new Consumer(setting);

            _topicsManager = new TopicsManager(setting.BootstrapServers);
            return(this);
        }
예제 #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);
        }
예제 #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);
        }