2024-04-22 13:33:39 +03:30
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
using Quartz;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Netina.Core.QuartzServices;
|
|
|
|
|
|
|
2024-08-16 18:27:54 +03:30
|
|
|
|
public class SiteMapScheduledJob(ILogger<SiteMapScheduledJob> logger, ISiteMapService siteMapService) : IJob
|
2024-04-22 13:33:39 +03:30
|
|
|
|
{
|
|
|
|
|
|
public async Task Execute(IJobExecutionContext context)
|
|
|
|
|
|
{
|
2024-08-09 21:55:16 +03:30
|
|
|
|
await siteMapService.CreateSiteMapAsync();
|
|
|
|
|
|
logger.LogInformation($"Site Map Job Done At : {DateTime.Now}");
|
2024-04-22 13:33:39 +03:30
|
|
|
|
}
|
|
|
|
|
|
}
|