PullCtx.cs 836 B

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