Exemplo n.º 1
0
			public BuildWorker(BuildWorkerManager parentManager)
			{
				this.parentManager = parentManager;
				string sdbin = Path.GetDirectoryName(typeof(BuildWorker).Assembly.Location);
				ProcessStartInfo startInfo = new ProcessStartInfo(Path.Combine(sdbin, parentManager.workerProcessName), "worker");
				startInfo.WorkingDirectory = sdbin;
				startInfo.UseShellExecute = false;
				startInfo.CreateNoWindow = true;
				process = new WorkerProcess(DataArrived);
				process.ProcessExited += process_ProcessExited;
				process.Start(startInfo);
			}
Exemplo n.º 2
0
            public BuildWorker(BuildWorkerManager parentManager)
            {
                this.parentManager = parentManager;
                string           sdbin     = Path.GetDirectoryName(typeof(BuildWorker).Assembly.Location);
                ProcessStartInfo startInfo = new ProcessStartInfo(Path.Combine(sdbin, parentManager.workerProcessName), "worker");

                startInfo.WorkingDirectory = sdbin;
                startInfo.UseShellExecute  = false;
                startInfo.CreateNoWindow   = true;
                process = new WorkerProcess(DataArrived);
                process.ProcessExited += process_ProcessExited;
                process.Start(startInfo);
            }