private void ExecuteWatcher(AbstractWatcher watcher) { try { Task.Factory.StartNew(watcher.Execute); } catch (Exception ex) { } }
private static void ExecuteWatcher(AbstractWatcher watcher) { var thread = new System.Threading.Thread(watcher.Execute); thread.Start(); }