コード例 #1
0
 /// <summary>
 ///  Get the next completed result, possibly executing several callbacks until
 /// one finally finishes. Normally a subclass would have to override both
 /// this method and <see cref="CreateInternalState"/> because the
 /// implementation of this method would rely on the details of the internal
 /// state.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="callback"></param>
 /// <param name="state"></param>
 /// <returns></returns>
 /// <exception cref="Exception">&nbsp;</exception>
 protected virtual RepeatStatus GetNextResult(IRepeatContext context, RepeatCallback callback, IRepeatInternalState state)
 {
     Update(context);
     if (Logger.IsDebugEnabled)
     {
         Logger.Debug("Repeat operation about to start at count={0}", context.GetStartedCount());
     }
     return(callback(context)); //"DoInInteration"
 }
コード例 #2
0
 /// <summary>
 ///  Get the next completed result, possibly executing several callbacks until
 /// one finally finishes. Normally a subclass would have to override both
 /// this method and <see cref="CreateInternalState"/> because the
 /// implementation of this method would rely on the details of the internal
 /// state.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="callback"></param>
 /// <param name="state"></param>
 /// <returns></returns>
 /// <exception cref="Exception">&nbsp;</exception>
 protected virtual RepeatStatus GetNextResult(IRepeatContext context, RepeatCallback callback, IRepeatInternalState state)
 {
     Update(context);
     if (Logger.IsDebugEnabled)
     {
         Logger.Debug("Repeat operation about to start at count={0}", context.GetStartedCount());
     }
     return callback(context); //"DoInInteration"
 }