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
Datei anzeigen Open project: vgribok/Aspectacular

Public Methods

Method Description
RetryCountAspect ( byte retryCount, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System

Protected Methods

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

Method Details

BeforeFirstRetry() protected method

protected BeforeFirstRetry ( ) : void
return void

NeedToStopRetries() protected method

protected NeedToStopRetries ( ) : bool
return bool

RetryCountAspect() public method

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.
return System