示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             DirectoryHandler.Dispose();
             _locker.Dispose();
             _context.Dispose();
         }
     }
     _disposed = true;
 }
示例#2
0
        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);
        }
示例#3
0
 public void Stop()
 {
     DirectoryHandler.Stop(FileHandler);
 }
示例#4
0
 public void Run()
 {
     DirectoryHandler.Run(FileHandler);
 }