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; }
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; }
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; }