상속: IDisposable
예제 #1
0
        public LocalFileSmartSyncStateOperations(DirectoryInfo stateDir)
        {
            var path = Path.Combine(stateDir.FullName, StateFileName);

            _stateFile = new FileInfo(path);
            _counter   = new AtomicFileCounter(_stateFile.FullName + ".ver");
        }
예제 #2
0
 virtual protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_counter != null)
         {
             _counter.Dispose();
             _counter = null;
         }
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_counter != null)
         {
             _counter.Dispose();
             _counter = null;
         }
     }
 }
 public LocalFileSmartSyncStateOperations(DirectoryInfo stateDir)
 {
     var path = Path.Combine(stateDir.FullName, StateFileName);
     _stateFile = new FileInfo(path);
     _counter = new AtomicFileCounter(_stateFile.FullName + ".ver");
 }