Ejemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            var parser = new ParserManager();

            parser.MakeParsed(args[0]);
            sourceDirectoryPath = parser.SourcePath;
            targetDirectoryPath = parser.TargetPath;
            if (sourceDirectoryPath == null || targetDirectoryPath == null)
            {
                throw new NullReferenceException("Wrong path!");
            }
            mods = parser.Mods;

            logger = new Logger(sourceDirectoryPath, targetDirectoryPath, mods);
            Thread loggerThread = new Thread(new ThreadStart(logger.Start));

            loggerThread.Start();
        }