コード例 #1
0
        public void CreateMonitor()
        {
            _monitor = new FrameworkFileSystemMonitor((ILoggerFactory)AppContext.GetObject("LoggerFactory", typeof(ILoggerFactory)));
            Assert.IsNotNull(_monitor);

            _monitor.FileSystemChanged += new FileSystemChangeEventHandler(_monitor_FileSystemChanged);

            _fsChangedFired = false;
            _fsChangedFireCount = 0;
            _lastChangeType = ChangeType.Changed;
            _lastNewPath = null;
            _lastOldPath = null;
        }
コード例 #2
0
 public void DisposeMonitor()
 {
     _monitor.Dispose();
     _monitor = null;
 }