ProcessingDocumentsCtx.cs 1.0 KB

12345678910111213141516171819202122232425
  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 ProcessingDocumentsCtx : CfgCtx
  10. {
  11. public IList<SingleDocumentCalculationWorker> Processes { get; }
  12. public IConnectionPS Connection { get; set; }
  13. public IFileSystem FileSystem { get; set; }
  14. public ProcessingDocumentsCtx(Configuration configuration,IList<SingleDocumentCalculationWorker> processes,IConnectionPS connection, IFileSystem fileSystem, Statistics statistics, Pool pool) : base(configuration, statistics, pool)
  15. {
  16. Processes = processes ?? throw new ArgumentNullException(nameof(processes));
  17. Connection = connection ?? throw new ArgumentNullException(nameof(connection));
  18. FileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
  19. }
  20. }
  21. }