private void RunTask(ITaskExecutionContext taskExecutionContext) { try { var dateRangeBlocks = GetDateRangeBlocks(taskExecutionContext); foreach (var block in dateRangeBlocks) ProcessBlock(block); taskExecutionContext.Complete(); } catch (Exception ex) { taskExecutionContext.Error(ex.ToString(), true); } }
private void RunTask(ITaskExecutionContext taskExecutionContext) { try { var numericRangeBlocks = GetNumericRangeBlocks(taskExecutionContext); foreach (var block in numericRangeBlocks) { ProcessBlock(block); } taskExecutionContext.Complete(); } catch (Exception ex) { taskExecutionContext.Error(ex.ToString(), true); } }