public AtomicEngine(string atomicLocation, string outputLocation, string config_path)
        {
            this.atomicLocation = atomicLocation;
            this.atomics        = new List <Atomic>();
            var atomic_dirs = Directory.EnumerateDirectories(atomicLocation).OrderBy(filename => filename);


            foreach (string atomic_dir in atomic_dirs)
            {
                var atomic = new Atomic(atomic_dir);
                this.atomics.Add(atomic);
            }
            this.GenerateRunables();
        }
Esempio n. 2
0
        public AtomicEngine(string atomicLocation, string outputLocation, string config_path)
        {
            this.atomicLocation = atomicLocation;
            this.atomics        = new List <Atomic>();
            var atomic_dirs = Directory.EnumerateDirectories(atomicLocation).OrderBy(filename => filename);


            foreach (string atomic_dir in atomic_dirs)
            {
                try
                {
                    var atomic = new Atomic(atomic_dir);
                    this.atomics.Add(atomic);
                }
                catch (Exception e) {
                    Console.WriteLine("Failed to load atomic for dir: " + e);
                }
            }
            this.GenerateRunables();
        }