public Logic(KafkaReceiver kafkareceiver) { _kafkareceiver = kafkareceiver; Task mytask = Task.Run(() => { _kafkareceiver.receive(on_message_receive); }); }
public static void Main(string[] args) { KafkaReceiver kafkareceiver = new KafkaReceiver(); Logic logic = new Logic(kafkareceiver); while (true) { Thread.Sleep(500); Console.WriteLine("Hello World!"); } }