INotificationScheduler.cs 904 B

12345678910111213141516171819202122232425262728
  1. using GreenTree.Nachtragsmanagement.Core.Domain.Misc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. namespace GreenTree.Nachtragsmanagement.Services.Scheduling
  7. {
  8. public interface INotificationScheduler
  9. {
  10. /// <summary>
  11. /// Starts the scheduler and builds all corresponding notification jobs
  12. /// </summary>
  13. void Start();
  14. /// <summary>
  15. /// Determines the next execution time of a specific job
  16. /// </summary>
  17. /// <param name="jobId">The job id.</param>
  18. DateTime GetNextExecutionOfJob(string jobId);
  19. /// <summary>
  20. /// Determines the next execution time of a specific mail notification
  21. /// </summary>
  22. /// <param name="mailNotification">The mail notification job.</param>
  23. DateTime GetNextExecutionOfJob(MailNotification mailNotification);
  24. }
  25. }