| 1234567891011121314151617181920212223242526272829 |
- 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<string> InputFiles { get; private set; }
- public IList<string> OutputFiles { get; private set; }
- public IConnectionPS Connection { get; private set; }
- public Process Process { get; set; }
- public CalculationCtx(IConnectionPS connection, long documentId, IList<string> 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<string>();
- }
- }
- }
|