Watches multiple files at the same time and raises an event whenever a single change is detected in any of those files.
Inheritance: 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;
 }