Example #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);
 }
Example #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);
        }