PullCtx.cs 913 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO.Abstractions;
  4. using BO.ProcessServer.Business.StatisticCounters;
  5. using BO.ProcessServer.Options;
  6. using Connector.PS;
  7. namespace BO.ProcessServer.Business.Workers.Contexts
  8. {
  9. internal class PullCtx : BaseCtx
  10. {
  11. public IConnectionPS Connection { get; set; }
  12. public IFileSystem FileSystem { get; set; }
  13. public IList<DocumentContent> Documents { get; }
  14. public PullCtx(IConnectionPS connection, IFileSystem fileSystem, Configuration configuration, Statistics statistics, Pool pool) : base(configuration, statistics, pool)
  15. {
  16. Connection = connection ?? throw new ArgumentNullException(nameof(connection));
  17. FileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
  18. Documents = new List<DocumentContent>();
  19. }
  20. }
  21. }