BaseCtx.cs 575 B

123456789101112131415161718
  1. using System;
  2. using BO.ProcessServer.Business.StatisticCounters;
  3. using Quadarax.Foundation.Core.Thread;
  4. namespace BO.ProcessServer.Business.Workers.Contexts
  5. {
  6. internal abstract class BaseCtx : IWorkerContext
  7. {
  8. public Statistics Statistics { get; }
  9. public Pool Pool { get; }
  10. protected BaseCtx(Statistics statistics, Pool pool)
  11. {
  12. Statistics = statistics ?? throw new ArgumentNullException(nameof(statistics));
  13. Pool = pool ?? throw new ArgumentNullException(nameof(pool));
  14. }
  15. }
  16. }