You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
771 B

2 years ago
  1. using log4net;
  2. using Quartz;
  3. using System;
  4. using System.Threading.Tasks;
  5. namespace WebApp.Jobs.ClearFiles
  6. {
  7. public class ClearFilesJob : IJob
  8. {
  9. private static ILog log = LogManager.GetLogger(typeof(RunJob));
  10. /// <summary>
  11. /// Called by the <see cref="IScheduler"/> when a <see cref="ITrigger"/> fires that is
  12. /// associated with the <see cref="IJob"/>.
  13. /// </summary>
  14. /// <param name="context">todo: describe context parameter on Execute</param>
  15. public virtual async Task Execute(IJobExecutionContext context)
  16. {
  17. // Say Hello to the World and display the date/time
  18. log.Debug($"Hello World! - {DateTime.Now:r}");
  19. await TaskUtil.CompletedTask;
  20. }
  21. }
  22. }