C# Класс Aspectacular.RetryAspectBase

Enables method retrying
Наследование: Aspect
Показать файл Открыть проект

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

Метод Описание
Step_4_Optional_AfterCatchingMethodExecException ( ) : void
Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void

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

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

Should be overwritten to implement actual logic deciding whether it needs to keep retrying.

RetryAspectBase ( uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector ) : System

SetRetryIfNecessary ( bool mayNeedToRetry ) : void

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

BeforeFirstRetry() защищенный абстрактный Метод

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

NeedToStopRetries() защищенный абстрактный Метод

Should be overwritten to implement actual logic deciding whether it needs to keep retrying.
protected abstract NeedToStopRetries ( ) : bool
Результат bool

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

protected RetryAspectBase ( uint millisecDelayBetweenRetries, FailureDetectorDelegate optionalFailureDetector ) : System
millisecDelayBetweenRetries uint Optional delay in milliseconds between retries.
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

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

protected SetRetryIfNecessary ( bool mayNeedToRetry ) : void
mayNeedToRetry bool
Результат void

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

public Step_4_Optional_AfterCatchingMethodExecException ( ) : void
Результат void

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

public Step_4_Optional_AfterSuccessfulCallCompletion ( ) : void
Результат void