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
ファイル: LogFactory.cs プロジェクト: JvanderStad/NLog
        /// <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
ファイル: LogFactory.cs プロジェクト: KroneckerX/WCell
        /// <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;
 }