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
显示文件 Open project: vgribok/Aspectacular

Public Methods

Method Description
RetryTimeAspect ( uint keepTryingForMilliseconds, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System

Step_2_BeforeTryingMethodExec ( ) : void

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

RetryTimeAspect() public method

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

Step_2_BeforeTryingMethodExec() public method

public Step_2_BeforeTryingMethodExec ( ) : void
return void