PullCtx.cs 876 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO.Abstractions;
  4. using BO.ProcessServer.Business.StatisticCounters;
  5. using Connector.PS;
  6. using Quadarax.Foundation.Core.IO.MimeTypes;
  7. namespace BO.ProcessServer.Business.Workers.Contexts
  8. {
  9. internal class PullCtx : BaseCtx
  10. {
  11. public Connection Connection { get; set; }
  12. public IFileSystem FileSystem { get; set; }
  13. public IList<DocumentContent> Documents { get; }
  14. public PullCtx(Connection connection, IFileSystem fileSystem, Statistics statistics, Pool pool) : base(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. }