コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }