C# Class Aspectacular.RetryTimeAspect

Aspect retrying function call for a given time period either when method has failed or when certain result was returned.
Inheritance: RetryAspectBase
Afficher le fichier Open project: vgribok/Aspectacular

Méthodes publiques

Méthode Description
RetryTimeAspect ( uint keepTryingForMilliseconds, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System

Step_2_BeforeTryingMethodExec ( ) : void

Méthodes protégées

Méthode Description
BeforeFirstRetry ( ) : void
NeedToStopRetries ( ) : bool

Method Details

BeforeFirstRetry() protected méthode

protected BeforeFirstRetry ( ) : void
Résultat void

NeedToStopRetries() protected méthode

protected NeedToStopRetries ( ) : bool
Résultat bool

RetryTimeAspect() public méthode

public RetryTimeAspect ( uint keepTryingForMilliseconds, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System
keepTryingForMilliseconds uint Time period during which attempts will be made to call intercepted method.
millisecDelayBetweenRetries uint
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

Step_2_BeforeTryingMethodExec() public méthode

public Step_2_BeforeTryingMethodExec ( ) : void
Résultat void