|
@@ -22,11 +22,11 @@ namespace Hotline.Application.Jobs
|
|
{
|
|
{
|
|
var task = await _apptaskDomainService.GetWaitingTaskAsync(context.CancellationToken);
|
|
var task = await _apptaskDomainService.GetWaitingTaskAsync(context.CancellationToken);
|
|
if (task is null) return;
|
|
if (task is null) return;
|
|
- //create executor by task type
|
|
|
|
switch (task.TaskType)
|
|
switch (task.TaskType)
|
|
{
|
|
{
|
|
case ETaskType.Delay:
|
|
case ETaskType.Delay:
|
|
- _serviceProvider.GetService<IApptaskExecutor<BatchDelayNextFlowDto>>();
|
|
|
|
|
|
+ var executor = _serviceProvider.GetService<IApptaskExecutor<BatchDelayNextFlowDto>>();
|
|
|
|
+ await _apptaskDomainService.ExecuteAsync(executor, task, context.CancellationToken);
|
|
break;
|
|
break;
|
|
case ETaskType.Screen:
|
|
case ETaskType.Screen:
|
|
break;
|
|
break;
|
|
@@ -34,7 +34,6 @@ namespace Hotline.Application.Jobs
|
|
throw new ArgumentOutOfRangeException();
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
}
|
|
|
|
|
|
- //await _apptaskDomainService.ExecuteAsync(new OrderDelayAuditTaskExecutor(), task, context.CancellationToken);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
|
|
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
|