Property | Type | Description | |
---|---|---|---|
Logger |
Method | Description | |
---|---|---|
Iterate ( RepeatCallback callback ) : RepeatStatus |
Execute the batch callback until the completion policy decides that we are finished. Wait for the whole batch to finish before returning even if the task executor is asynchronous.
|
|
RegisterListener ( IRepeatListener listener ) : void |
Registers given listener.
|
|
SetListeners ( IRepeatListener listeners ) : void |
Registers array of listeners.
|
Method | Description | |
---|---|---|
CanContinue ( RepeatStatus value ) : bool |
Check return value from batch operation.
|
|
CreateInternalState ( IRepeatContext context ) : IRepeatInternalState |
Create an internal state object that is used to store data needed internally in the scope of an iteration. Used by subclasses to manage the queueing and retrieval of asynchronous results. The default just provides an accumulation of exceptions instances for processing at the end of the batch.
|
|
ExecuteAfterInterceptors ( IRepeatContext context, RepeatStatus value ) : void |
Convenience method to execute after interceptors on a callback result.
|
|
GetNextResult ( IRepeatContext context, RepeatCallback callback, IRepeatInternalState state ) : RepeatStatus |
Get the next completed result, possibly executing several callbacks until one finally finishes. Normally a subclass would have to override both this method and CreateInternalState because the implementation of this method would rely on the details of the internal state.
|
|
IsComplete ( IRepeatContext context ) : bool |
Delegates to the Completion policy.
|
|
IsComplete ( IRepeatContext context, RepeatStatus result ) : bool |
Delegates to the Completion policy.
|
|
Start ( ) : IRepeatContext |
Delegates the start to the Completion policy.
|
|
Update ( IRepeatContext context ) : void |
Delegates to the completion policy.
|
|
WaitForResults ( IRepeatInternalState state ) : bool |
If necessary, wait for results to come back from remote or concurrent processes. By default does nothing and returns true.
|
Method | Description | |
---|---|---|
DoHandle ( System exception, IRepeatContext context, ICollection |
Handling exceptions.
|
|
ExecuteInternal ( RepeatCallback callback ) : RepeatStatus |
|
|
HandleFinally ( ICollection |
Handling the finally from ExecuteInternal.
|
|
IsMarkedComplete ( IRepeatContext context ) : bool |
Check that given context is marked as completed.
|
|
Rethrow ( System exception ) : void |
rethrow the exception wrapped into a RepeatException.
|
|
UnwrapIfRethrown ( System exception ) : System.Exception |
Unwrap the exception id it has been wrapped into a RepeatException.
|
protected CanContinue ( RepeatStatus value ) : bool | ||
value | RepeatStatus | |
return | bool |
protected CreateInternalState ( IRepeatContext context ) : IRepeatInternalState | ||
context | IRepeatContext | |
return | IRepeatInternalState |
protected ExecuteAfterInterceptors ( IRepeatContext context, RepeatStatus value ) : void | ||
context | IRepeatContext | |
value | RepeatStatus | |
return | void |
protected GetNextResult ( IRepeatContext context, RepeatCallback callback, IRepeatInternalState state ) : RepeatStatus | ||
context | IRepeatContext | |
callback | RepeatCallback | |
state | IRepeatInternalState | |
return | RepeatStatus |
protected IsComplete ( IRepeatContext context ) : bool | ||
context | IRepeatContext | |
return | bool |
protected IsComplete ( IRepeatContext context, RepeatStatus result ) : bool | ||
context | IRepeatContext | |
result | RepeatStatus | |
return | bool |
public Iterate ( RepeatCallback callback ) : RepeatStatus | ||
callback | RepeatCallback | |
return | RepeatStatus |
public RegisterListener ( IRepeatListener listener ) : void | ||
listener | IRepeatListener | |
return | void |
public SetListeners ( IRepeatListener listeners ) : void | ||
listeners | IRepeatListener | |
return | void |
protected Update ( IRepeatContext context ) : void | ||
context | IRepeatContext | |
return | void |
protected WaitForResults ( IRepeatInternalState state ) : bool | ||
state | IRepeatInternalState | |
return | bool |