RetentionWorker.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Threading.Tasks;
  2. using BO.ProcessServer.Business.Workers.Contexts;
  3. using Quadarax.Foundation.Core.Logging;
  4. using Quadarax.Foundation.Core.Thread;
  5. namespace BO.ProcessServer.Business.Workers
  6. {
  7. public class RetentionWorker : LoopWorker
  8. {
  9. #region *** Constants ***
  10. private const string CS_WK_NAME = "Retention";
  11. #endregion
  12. #region *** Constuctors ***
  13. public RetentionWorker(IWorkerContext context) : base(CS_WK_NAME, context)
  14. {
  15. var ctx = (CfgCtx)context;
  16. ctx.Configuration.System.Retention.
  17. }
  18. public RetentionWorker(string workerName, IWorkerContext context) : base(workerName, context)
  19. {
  20. }
  21. public RetentionWorker(string workerName) : base(workerName)
  22. {
  23. }
  24. public RetentionWorker(string workerName, IWorkerContext context, ILogger logger = null) : base(workerName, context, logger)
  25. {
  26. }
  27. #endregion
  28. #region *** Iteration ***
  29. protected override async Task DoIteration(IWorkerContext context)
  30. {
  31. var ctx = (CfgCtx)context;
  32. }
  33. #endregion
  34. }
  35. }