Example #1
0
 private void CreatePluginAnalyzer()
 {
     if (_pluginAnalyzer == null)
     {
         _pluginAnalyzer = new PluginAnalyzer(_backgroundWorker);
     }
 }
        public ModAnalyzerService()
        {
            // prepare background worker
            _backgroundWorker = new BackgroundWorker {
                WorkerReportsProgress = true
            };
            _backgroundWorker.DoWork          += BackgroundWork;
            _backgroundWorker.ProgressChanged += BackgroundProgress;

            // prepare analyzers and job queues
            _assetArchiveAnalyzer = new AssetArchiveAnalyzer(_backgroundWorker);
            _pluginAnalyzer       = new PluginAnalyzer(_backgroundWorker);
            EntryOptionMap        = new List <Tuple <string, ModOption> >();

            // prepare directories
            Directory.CreateDirectory("output");
        }