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