CalculationCtx.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  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 CalculationCtx : BaseCtx
  10. {
  11. public long DocumentId { get; private set; }
  12. public IList<string> InputFiles { get; private set; }
  13. public IList<string> OutputFiles { get; private set; }
  14. public IConnectionPS Connection { get; private set; }
  15. public Process Process { get; set; }
  16. public CalculationCtx(IConnectionPS connection, long documentId, IList<string> files, Configuration configuration, Statistics statistics, Pool pool) : base(configuration, statistics, pool)
  17. {
  18. DocumentId = documentId;
  19. InputFiles = files ?? throw new ArgumentNullException(nameof(files));
  20. Connection = connection ?? throw new ArgumentNullException(nameof(connection));
  21. OutputFiles = new List<string>();
  22. }
  23. }
  24. }