C# Class Aspectacular.RetryCountAspect

Aspect implementing a certain number of function call retries 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
RetryCountAspect ( byte retryCount, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System

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

RetryCountAspect() public méthode

public RetryCountAspect ( byte retryCount, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System
retryCount byte Maximum number of attempts to call the function
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