|
@@ -1,13 +1,21 @@
|
|
|
-using Quadarax.Foundation.Core.Logging;
|
|
|
|
|
|
|
+using System.Threading.Tasks;
|
|
|
|
|
+using BO.ProcessServer.Business.Workers.Contexts;
|
|
|
|
|
+using Quadarax.Foundation.Core.Logging;
|
|
|
using Quadarax.Foundation.Core.Thread;
|
|
using Quadarax.Foundation.Core.Thread;
|
|
|
|
|
|
|
|
namespace BO.ProcessServer.Business.Workers
|
|
namespace BO.ProcessServer.Business.Workers
|
|
|
{
|
|
{
|
|
|
public class RetentionWorker : LoopWorker
|
|
public class RetentionWorker : LoopWorker
|
|
|
{
|
|
{
|
|
|
|
|
+ #region *** Constants ***
|
|
|
private const string CS_WK_NAME = "Retention";
|
|
private const string CS_WK_NAME = "Retention";
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region *** Constuctors ***
|
|
|
public RetentionWorker(IWorkerContext context) : base(CS_WK_NAME, context)
|
|
public RetentionWorker(IWorkerContext context) : base(CS_WK_NAME, context)
|
|
|
{
|
|
{
|
|
|
|
|
+ var ctx = (CfgCtx)context;
|
|
|
|
|
+ ctx.Configuration.System.Retention.
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public RetentionWorker(string workerName, IWorkerContext context) : base(workerName, context)
|
|
public RetentionWorker(string workerName, IWorkerContext context) : base(workerName, context)
|
|
@@ -21,5 +29,18 @@ namespace BO.ProcessServer.Business.Workers
|
|
|
public RetentionWorker(string workerName, IWorkerContext context, ILogger logger = null) : base(workerName, context, logger)
|
|
public RetentionWorker(string workerName, IWorkerContext context, ILogger logger = null) : base(workerName, context, logger)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region *** Iteration ***
|
|
|
|
|
+ protected override async Task DoIteration(IWorkerContext context)
|
|
|
|
|
+ {
|
|
|
|
|
+ var ctx = (CfgCtx)context;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #endregion
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|