| 12345678910111213141516171819202122 |
- using System;
- using BO.ProcessServer.Business.StatisticCounters;
- using BO.ProcessServer.Options;
- using Quadarax.Foundation.Core.Thread;
- namespace BO.ProcessServer.Business.Workers.Contexts
- {
- internal abstract class BaseCtx : IWorkerContext
- {
- public Statistics Statistics { get; }
- public Pool Pool { get; }
- public Configuration Configuration { get; }
- protected BaseCtx(Configuration configuration, Statistics statistics, Pool pool)
- {
- Statistics = statistics ?? throw new ArgumentNullException(nameof(statistics));
- Pool = pool ?? throw new ArgumentNullException(nameof(pool));
- Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
- }
- }
- }
|