public static void TestPublisher() { Publisher myPub = new Publisher(); try { while (true) { myPub.SendInfo(Publisher.GESTE, "DEBOUT"); Thread.Sleep(500); } } catch (Exception ex) { Console.WriteLine(ex); } } }