Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            r = new Random();
            MEETNode mn = new MEETNode("TestContainer");

            pcq  = new MEETPCQueue(5);
            tqm1 = new TestQModule("tqm1", mn, pcq);
            tm2  = new TestModule("tm2", mn);
            mc   = new MEETClock("mc", mn);
            mc.Start();
            tqm1.Start();
            Thread.Sleep(500);
            tm2.Start();
            Thread.Sleep(2000);
            tm2.Stop();
            Thread.Sleep(2000);
            tqm1.Stop();
            Thread.Sleep(1000);
            mn.Shutdown();

            Debug.WriteLine("dumping Log:");
            IList log = mn.Log;

            Debug.WriteLine("dumping Log:");
            foreach (string s in log)
            {
                Debug.WriteLine(s);
            }
        }
 private void mnuExit_Click(object sender, System.EventArgs e)
 {
     m_node.Shutdown();
     Application.Exit();
 }