Esempio n. 1
0
        public Watcher(string rootFolder, RuleStatsTracker deps, LocalFolderRuleProcessor ruleProcessor, MergeConfig mCfg)
        {
            RootFolder = Path.GetFullPath( rootFolder );

            Deps = deps;
            MergeCfg = mCfg;
            RuleProcessor = ruleProcessor;
            TransformQueue = new Queue<string>();
            MergeQueue = new Queue<string>();
            TransformThread = new Thread(ProcessTransform);
            MergeThread = new Thread(ProcessMerge);

            // subscribe to writing event for dependencies chain checking
            RuleProcessor.FileManager.Writing += new FileManagerEventHandler(FileManagerWriting);
        }
Esempio n. 2
0
        public Watcher(string rootFolder, RuleStatsTracker deps, LocalFolderRuleProcessor ruleProcessor, MergeConfig mCfg)
        {
            RootFolder = Path.GetFullPath(rootFolder);

            Deps            = deps;
            MergeCfg        = mCfg;
            RuleProcessor   = ruleProcessor;
            TransformQueue  = new Queue <string>();
            MergeQueue      = new Queue <string>();
            TransformThread = new Thread(ProcessTransform);
            MergeThread     = new Thread(ProcessMerge);

            // subscribe to writing event for dependencies chain checking
            RuleProcessor.FileManager.Writing += new FileManagerEventHandler(FileManagerWriting);
        }