PullDocumentsWorker.cs 1014 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.IO.Abstractions;
  3. using BO.ProcessServer.Business.StatisticCounters;
  4. using BO.ProcessServer.Business.Workers.Contexts;
  5. using Connector.PS;
  6. using Quadarax.Foundation.Core.Logging;
  7. using Quadarax.Foundation.Core.Thread;
  8. namespace BO.ProcessServer.Business.Workers
  9. {
  10. internal class PullDocumentsWorker : LoopWorker
  11. {
  12. private const string CS_WK_NAME = "PullDocument";
  13. public PullDocumentsWorker(Connection connection, TimeSpan loopEveryTimeSpan, IFileSystem fileSystem, Statistics statistics,Pool pool, ILogger logger) : base(CS_WK_NAME, new PullCtx(connection, fileSystem, statistics, pool), logger)
  14. {
  15. IterationsDelayBetween = loopEveryTimeSpan;
  16. }
  17. public PullDocumentsWorker(string workerName) : base(workerName)
  18. {
  19. }
  20. public PullDocumentsWorker(string workerName, IWorkerContext context, ILogger logger = null) : base(workerName, context, logger)
  21. {
  22. }
  23. }
  24. }