예제 #1
0
        public Logic(KafkaReceiver kafkareceiver)
        {
            _kafkareceiver = kafkareceiver;

            Task mytask = Task.Run(() => {
                _kafkareceiver.receive(on_message_receive);
            });
        }
예제 #2
0
        public static void Main(string[] args)
        {
            KafkaReceiver kafkareceiver = new KafkaReceiver();

            Logic logic = new Logic(kafkareceiver);

            while (true)
            {
                Thread.Sleep(500);
                Console.WriteLine("Hello World!");
            }
        }