Esempio n. 1
0
 static void Main(string[] args)
 {
     init();
     //configlist.ElementAt(0) is path to watched folder
     //configlist.ElementAt(1) is a pattern e.g. "*.txt"
     SingleThreadFileWatcher stfw = new SingleThreadFileWatcher(configlist.ElementAt(0), configlist.ElementAt(1),
         pgsqlConnString);
     //start watching the files
     stfw.watchChanges();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            init();
            //configlist.ElementAt(0) is path to watched folder
            //configlist.ElementAt(1) is a pattern e.g. "*.txt"
            SingleThreadFileWatcher stfw = new SingleThreadFileWatcher(configlist.ElementAt(0), configlist.ElementAt(1),
                                                                       pgsqlConnString);

            //start watching the files
            stfw.watchChanges();
        }