private DateTime GetDateRangeStartDate(ITaskExecutionContext taskExecutionContext)
 {
     var lastBlock = taskExecutionContext.GetLastDateRangeBlock(LastBlockOrder.LastCreated);
     if (lastBlock == null)
         return _configuration.FirstRunDate;
     else
         return lastBlock.EndDate;
 }
Example #2
0
        private DateTime GetDateRangeStartDate(ITaskExecutionContext taskExecutionContext)
        {
            var lastBlock = taskExecutionContext.GetLastDateRangeBlock(LastBlockOrder.LastCreated);

            if (lastBlock == null)
            {
                return(_configuration.FirstRunDate);
            }
            else
            {
                return(lastBlock.EndDate);
            }
        }