protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { DirectoryHandler.Dispose(); _locker.Dispose(); _context.Dispose(); } } _disposed = true; }
public Controller(string directoryPath, string filesFilter) { _context = new SalesContext(); _locker = new ReaderWriterLockSlim(); DirectoryHandler = new DirectoryHandler(directoryPath, filesFilter); Unit = new Unit(_context, _locker); Parser = new Parser(); FileHandler = new FileHandler(Unit, Parser, _locker); }
public void Stop() { DirectoryHandler.Stop(FileHandler); }
public void Run() { DirectoryHandler.Run(FileHandler); }