using System; using System.Collections.Generic; using System.Diagnostics; using BO.ProcessServer.Business.StatisticCounters; using BO.ProcessServer.Options; using Connector.PS; namespace BO.ProcessServer.Business.Workers.Contexts { internal class CalculationCtx : BaseCtx { public long DocumentId { get; private set; } public IList InputFiles { get; private set; } public IList OutputFiles { get; private set; } public IConnectionPS Connection { get; private set; } public Process Process { get; set; } public CalculationCtx(IConnectionPS connection, long documentId, IList files, Configuration configuration, Statistics statistics, Pool pool) : base(configuration, statistics, pool) { DocumentId = documentId; InputFiles = files ?? throw new ArgumentNullException(nameof(files)); Connection = connection ?? throw new ArgumentNullException(nameof(connection)); OutputFiles = new List(); } } }