static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("Starting order validation service in 5 seconds..."); Thread.Sleep(5000); KafkaHelper.Consume("GROUP-VALIDATION", Topics.OrderCreated, Process); }
static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("Starting order shipping service in 11 seconds..."); Thread.Sleep(11000); KafkaHelper.Consume("GROUP-SHIPPING", Topics.OrderValidated, Process); //KafkaHelper.Consume<Order>("GROUP-FOR-ALL", Topics.OrderValidated, Process); }
static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Starting order finance service in 9 seconds..."); Thread.Sleep(9000); KafkaHelper.Consume("GROUP-FINANCE", Topics.OrderValidated, Process); //KafkaHelper.Consume<Order>("GROUP-FOR-ALL", Topics.OrderValidated, Process); }