示例#1
0
 private void ExecuteWatcher(AbstractWatcher watcher)
 {
     try {
         Task.Factory.StartNew(watcher.Execute);
     }
     catch (Exception ex)
     {
     }
 }
示例#2
0
        private static void ExecuteWatcher(AbstractWatcher watcher)
        {
            var thread = new System.Threading.Thread(watcher.Execute);

            thread.Start();
        }