/// <summary> /// Test le publisher /// </summary> 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); } }
public Localisation(string _filename, string _nomZoneDefaut, Publisher _pub) { Zones = new List<Zone>(); ReadXml(_filename); Pub = _pub; InitSensor(); Statut = ABSENT; Zone = ""; ZoneDefaut = _nomZoneDefaut; }