Esempio n. 1
0
        static void Main(string[] args)
        {
            ManualResetEvent reset = new ManualResetEvent(false);

            TaskHandler.RunTask(delegate(object value)
            {
                var parameters = value as object[];

                using (var pipe = new Pipe(@"\\.\pipe\allegqueue"))
                {
                    pipe.Create();

                    if (pipe.Connect())
                    {
                        string memoryLocation = pipe.Read();
                        PerformStringUpdateInRemoteClient(memoryLocation);
                    }
                }
            });

            _processHandler = ProcessHandler.Start(@"..\..\..\Client\Debug\Client.exe", "");

            Process process = null;

            do
            {
                _processHandler.TryGetAttachedProcess(out process);
            } while (process == null);



            process.WaitForExit();
        }
        static void Main(string[] args)
        {
            ManualResetEvent reset = new ManualResetEvent(false);

            TaskHandler.RunTask(delegate(object value)
            {
                var parameters = value as object[];

                using (var pipe = new Pipe(@"\\.\pipe\allegqueue"))
                {
                    pipe.Create();

                    if (pipe.Connect())
                    {
                        string memoryLocation = pipe.Read();
                        PerformStringUpdateInRemoteClient(memoryLocation);
                    }
                }

            });

            _processHandler = ProcessHandler.Start(@"..\..\..\Client\Debug\Client.exe", "");

            Process process = null;
            do
            {
                _processHandler.TryGetAttachedProcess(out process);
            } while (process == null);

            process.WaitForExit();
        }