private void StartupProcesses()
{
Parallel.ForEach(this.Config.Startup.ProcessSettings, new ParallelOptions() { MaxDegreeOfParallelism = 8 }, item =>
{
try
{
var process = new Process();
process.StartInfo.FileName = Path.GetFullPath(item.Path);
process.StartInfo.Arguments = item.Arguments;
process.StartInfo.WorkingDirectory = Path.GetFullPath(item.WorkingDirectory);
process.StartInfo.CreateNoWindow = true;
process.StartInfo.UseShellExecute = false;
process.Start();
_processList.Add(process);
}
catch (Exception)
{
}
});
}