C# Класс Aspectacular.RetryCountAspect

Aspect implementing a certain number of function call retries either when method has failed or when certain result was returned.
Наследование: RetryAspectBase
Показать файл Открыть проект

Открытые методы

Метод Описание
RetryCountAspect ( byte retryCount, uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector = null ) : System

Защищенные методы

Метод Описание
BeforeFirstRetry ( ) : void
NeedToStopRetries ( ) : bool

Описание методов

BeforeFirstRetry() защищенный Метод

protected BeforeFirstRetry ( ) : void
Результат void

NeedToStopRetries() защищенный Метод

protected NeedToStopRetries ( ) : bool
Результат bool

RetryCountAspect() публичный Метод

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.
Результат System