forked from ddrilling/AsbCloudServer
Комментарии к классу WorkToDeleteOldReports
This commit is contained in:
parent
66c0e6ad65
commit
de59cb5f85
@ -6,6 +6,9 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace AsbCloudInfrastructure.Background
|
namespace AsbCloudInfrastructure.Background
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Задача по удалению загруженных отчетов
|
||||||
|
/// </summary>
|
||||||
public class WorkToDeleteOldReports : Work
|
public class WorkToDeleteOldReports : Work
|
||||||
{
|
{
|
||||||
public WorkToDeleteOldReports()
|
public WorkToDeleteOldReports()
|
||||||
@ -14,6 +17,14 @@ namespace AsbCloudInfrastructure.Background
|
|||||||
Timeout = TimeSpan.FromMinutes(10);
|
Timeout = TimeSpan.FromMinutes(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Удаление отчетов, загруженных ранее 30 дней от текущей даты
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <param name="services"></param>
|
||||||
|
/// <param name="onProgressCallback"></param>
|
||||||
|
/// <param name="token"></param>
|
||||||
|
/// <returns></returns>
|
||||||
protected override async Task Action(string id, IServiceProvider services, Action<string, double?> onProgressCallback, CancellationToken token)
|
protected override async Task Action(string id, IServiceProvider services, Action<string, double?> onProgressCallback, CancellationToken token)
|
||||||
{
|
{
|
||||||
var reportService = services.GetRequiredService<IReportService>();
|
var reportService = services.GetRequiredService<IReportService>();
|
||||||
|
Loading…
Reference in New Issue
Block a user