Ejemplo n.º 1
0
        public FileChangeWatcher(string root, FileSet fileSet, IChangeSetHandler handler)
        {
            _files   = new FubuApplicationFiles(root);
            _fileSet = fileSet;
            _handler = handler;
            _timer   = new Timer
            {
                AutoReset = false
            };

            Root = root;

            _timer.Elapsed += _timer_Elapsed;
        }
Ejemplo n.º 2
0
        public FileChangeWatcher(string root, FileSet fileSet, IChangeSetHandler handler)
        {
            _files = new ApplicationFiles(root);
            _fileSet = fileSet;
            _handler = handler;

#if NET46
            _timer = new Timer(execute);
#else
            _timer = new Timer(execute, this, 0, PollingIntervalInMilliseconds);
#endif


            Root = root;
        }
Ejemplo n.º 3
0
        public FileChangeWatcher(string root, FileSet fileSet, IChangeSetHandler handler)
        {
            _files   = new ApplicationFiles(root);
            _fileSet = fileSet;
            _handler = handler;

#if NET46
            _timer = new Timer(execute);
#else
            _timer = new Timer(execute, this, 0, PollingIntervalInMilliseconds);
#endif


            Root = root;
        }