Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.Write("\n  Demonstration of mother Builder");
            Console.Write("\n ============================");

            MotherBuilder mb = new MotherBuilder();

            Thread rcvActionThread = new Thread(mb.receiveAction);

            rcvActionThread.Start();

            Thread sendReqThread = new Thread(mb.sendRequest);

            sendReqThread.Start();

            Console.Write("\n\n");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.Title           = "MotherBuilder";
            Console.BackgroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.DarkBlue;

            Console.Write("\n  Mother Builder Process");
            Console.Write("\n =====================\n");
            MotherBuilder mb = new MotherBuilder();

            Thread rcvActionThread = new Thread(mb.receiveAction);

            rcvActionThread.Start();

            Thread sendReqThread = new Thread(mb.sendRequest);

            sendReqThread.Start();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.Write("\n  Demonstration of mother Builder");
            Console.Write("\n ============================");

            MotherBuilder mb = new MotherBuilder();

            Thread rcvActionThread = new Thread(mb.receiveAction);

            rcvActionThread.Start();

            int count = Int32.Parse(args[0]);

            mb.allProcess(count);

            Thread sendReqThread = new Thread(mb.sendRequest);

            sendReqThread.Start();

            Console.Write("\n\n");
        }