Exemple #1
0
        public static void DoTest()
        {
            StartServer("RED");

            // Client
            pipedClient pc = new pipedClient("RED");
        }
Exemple #2
0
        public static void DoTest(int num)
        {
            // Debug($"Program Start {DateTime.Now}");
            List <Process> procs = new List <Process>();

            for (int i = 0; i < num; i++)
            {
                string           pid       = Guid.NewGuid().ToString().Substring(24);
                ProcessStartInfo startInfo = new ProcessStartInfo("SingleCallAndAnswer.exe")
                {
                    WindowStyle    = ProcessWindowStyle.Hidden,
                    CreateNoWindow = true,
                    Arguments      = pid
                };
                procs.Add(Process.Start(startInfo));
                try
                {
                    pipedClient pc = new pipedClient(pid);
                }
                catch (Exception e) { Debug(e, pipedClient.DebugMessagePrefix); }
            }
        }