C# 클래스 Azi.Tools.Retry

Tool class to retry operations on error
파일 보기 프로젝트 열기: Rambalac/AmazonCloudDriveApi 1 사용 예제들

공개 메소드들

메소드 설명
Do ( int times, TimeSpan>.Func retryDelay, Func act ) : Task

Does async func and retries if it failed

Do ( int times, TimeSpan>.Func retryDelay, Func act, Func exceptionPocessor ) : Task

Does async func and retries if it failed

Do ( int times, Func act ) : bool

Does func and retries if it failed

Do ( int times, TimeSpan>.Func retryDelay, Func act ) : bool

Does func and retries if it failed

Do ( int times, TimeSpan>.Func retryDelay, Func act, bool>.Func exceptionPocessor ) : bool

Does func and retries if it failed

Do ( int times, bool>.Func act ) : bool

Does func and retries if it failed

비공개 메소드들

메소드 설명
DefaultExceptionProcessor ( Exception ex ) : bool
DefaultExceptionProcessorAsync ( Exception ex ) : Task

메소드 상세

Do() 공개 정적인 메소드

Does async func and retries if it failed
public static Do ( int times, TimeSpan>.Func retryDelay, Func act ) : Task
times int Maximum times to retry
retryDelay TimeSpan>.Func Func that returns time between each retry. First parameter is number of tries before.
act Func Async Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.
리턴 Task

Do() 공개 정적인 메소드

Does async func and retries if it failed
public static Do ( int times, TimeSpan>.Func retryDelay, Func act, Func exceptionPocessor ) : Task
times int Maximum times to retry
retryDelay TimeSpan>.Func Func that returns time between each retry. First parameter is number of tries before.
act Func Async Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.
exceptionPocessor Func Async Func that checks exception and return true if action can not be retried
리턴 Task

Do() 공개 정적인 메소드

Does func and retries if it failed
public static Do ( int times, Func act ) : bool
times int Maximum times to retry
act Func Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.
리턴 bool

Do() 공개 정적인 메소드

Does func and retries if it failed
public static Do ( int times, TimeSpan>.Func retryDelay, Func act ) : bool
times int Maximum times to retry
retryDelay TimeSpan>.Func Func that returns time between each retry. First parameter is number of tries before.
act Func Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.
리턴 bool

Do() 공개 정적인 메소드

Does func and retries if it failed
public static Do ( int times, TimeSpan>.Func retryDelay, Func act, bool>.Func exceptionPocessor ) : bool
times int Maximum times to retry
retryDelay TimeSpan>.Func Func that returns time between each retry. First parameter is number of tries before.
act Func Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.
exceptionPocessor bool>.Func Func that checks exception and return true if action can not be retried
리턴 bool

Do() 공개 정적인 메소드

Does func and retries if it failed
public static Do ( int times, bool>.Func act ) : bool
times int Maximum times to retry
act bool>.Func Func with action and which returns false if retry required. Throw exception if action fail and can not be retried.. Throw exception if action fail and can not be retried. Throw exception if action fail and can not be retried.
리턴 bool