C# Class Aspectacular.RetryAspectBase

Enables method retrying
Inheritance: Aspect
Afficher le fichier Open project: vgribok/Aspectacular

Méthodes publiques

Méthode Description
Step_4_Optional_AfterCatchingMethodExecException ( ) : void
Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void

Méthodes protégées

Méthode 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 méthode

protected abstract BeforeFirstRetry ( ) : void
Résultat void

NeedToStopRetries() protected abstract méthode

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

RetryAspectBase() protected méthode

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.
Résultat System

SetRetryIfNecessary() protected méthode

protected SetRetryIfNecessary ( bool mayNeedToRetry ) : void
mayNeedToRetry bool
Résultat void

Step_4_Optional_AfterCatchingMethodExecException() public méthode

public Step_4_Optional_AfterCatchingMethodExecException ( ) : void
Résultat void

Step_4_Optional_AfterSuccessfulCallCompletion() public méthode

public Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void
Résultat void