Watches multiple files at the same time and raises an event whenever a single change is detected in any of those files.
상속: IDisposable
예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LogFactory" /> class.
        /// </summary>
        public LogFactory()
        {
#if !SILVERLIGHT
            this.watcher = new MultiFileWatcher();
            this.watcher.OnChange += this.ConfigFileChanged;
#endif
        }
예제 #2
0
        /// <summary>
        /// Creates a new instance of <see cref="LogFactory"/>
        /// </summary>
        public LogFactory()
        {
#if !NETCF
            _watcher = new MultiFileWatcher(new EventHandler(ConfigFileChanged));
#endif
        }
예제 #3
0
파일: LogFactory.cs 프로젝트: ExM/NLog
 /// <summary>
 /// Initializes a new instance of the <see cref="LogFactory" /> class.
 /// </summary>
 public LogFactory()
 {
     _watcher = new MultiFileWatcher();
     _watcher.OnChange += ConfigFileChanged;
 }