Esempio n. 1
0
 public Module()
 {
     _eventWatchers = new EventWatchers();
     _eventWatchers.SendLogEvent += new LogEventHandler(_eventWatchers_SendLogEvent);
     string path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
     string filter = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + ".dll.config";
     watcherConfig = new FileSystemWatcher(path, filter);
     watcherConfig.Changed += new FileSystemEventHandler(OnConfigChanghed);
 }
Esempio n. 2
0
        public Module()
        {
            _eventWatchers = new EventWatchers();
            _eventWatchers.SendLogEvent += new LogEventHandler(_eventWatchers_SendLogEvent);
            string path   = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            string filter = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + ".dll.config";

            watcherConfig          = new FileSystemWatcher(path, filter);
            watcherConfig.Changed += new FileSystemEventHandler(OnConfigChanghed);
        }