Ejemplo n.º 1
0
 private static bool IsValidIntervalTime(DateTime now, IntervalPublishingOptions options)
 {
     return(options.LastPublishing == null || now - options.LastPublishing > options.PublishingInterval);
 }
Ejemplo n.º 2
0
 private static bool IsValidPublishingInterval(DateTime dateTime, IntervalPublishingOptions options)
 {
     return(options.EnablePublishingInterval && DateWithinDateRange(dateTime, options.StartIntervalTime, options.EndIntervalTime));
 }