C# Class Aspectacular.RetryAspectBase

Enables method retrying
Inheritance: Aspect
Datei anzeigen Open project: vgribok/Aspectacular

Public Methods

Method Description
Step_4_Optional_AfterCatchingMethodExecException ( ) : void
Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void

Protected Methods

Method Description
BeforeFirstRetry ( ) : void
NeedToStopRetries ( ) : bool

Should be overwritten to implement actual logic deciding whether it needs to keep retrying.

RetryAspectBase ( uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector ) : System

SetRetryIfNecessary ( bool mayNeedToRetry ) : void

Method Details

BeforeFirstRetry() protected abstract method

protected abstract BeforeFirstRetry ( ) : void
return void

NeedToStopRetries() protected abstract method

Should be overwritten to implement actual logic deciding whether it needs to keep retrying.
protected abstract NeedToStopRetries ( ) : bool
return bool

RetryAspectBase() protected method

protected RetryAspectBase ( uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector ) : System
millisecDelayBetweenRetries uint Optional delay in milliseconds between retries.
optionalFailureDetector FailureDetectorDelegate Optional custom method to decide whether failure occurred and retry is required. If not provided, exception in the main method or result post-processing will trigger retry.
return System

SetRetryIfNecessary() protected method

protected SetRetryIfNecessary ( bool mayNeedToRetry ) : void
mayNeedToRetry bool
return void

Step_4_Optional_AfterCatchingMethodExecException() public method

public Step_4_Optional_AfterCatchingMethodExecException ( ) : void
return void

Step_4_Optional_AfterSuccessfulCallCompletion() public method

public Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void
return void