C# Class Spring.Retry.Retry.Support.NeverRetryPolicy

A IRetryPolicy that allows the first attempt but never permits a retry. Also be used as a base class for other policies, e.g. for test purposes as a stub.
Inheritance: IRetryPolicy
Mostrar archivo Open project: spring-projects/spring-net-retry

Public Methods

Method Description
CanRetry ( IRetryContext context ) : bool

Returns false after the first exception. So there is always one try, and then the retry is prevented. IRetryContext

Close ( IRetryContext context ) : void

Do nothing. IRetryContext

Open ( IRetryContext parent ) : IRetryContext

Return a context that can respond to early termination requests, but does nothing else. IRetryPolicy.Open

RegisterException ( IRetryContext context, Exception exception ) : void

Make the exception available for downstream use through the context. IRetryPolicy.RegisterException

Method Details

CanRetry() public method

Returns false after the first exception. So there is always one try, and then the retry is prevented. IRetryContext
public CanRetry ( IRetryContext context ) : bool
context IRetryContext The context.
return bool

Close() public method

Do nothing. IRetryContext
public Close ( IRetryContext context ) : void
context IRetryContext The context.
return void

Open() public method

Return a context that can respond to early termination requests, but does nothing else. IRetryPolicy.Open
public Open ( IRetryContext parent ) : IRetryContext
parent IRetryContext The parent.
return IRetryContext

RegisterException() public method

Make the exception available for downstream use through the context. IRetryPolicy.RegisterException
public RegisterException ( IRetryContext context, Exception exception ) : void
context IRetryContext The context.
exception System.Exception The exception.
return void