Click or drag to resize

LinearRetryPolicy Constructor (Type, Int32, NullableTimeSpan, NullableTimeSpan, String)

Constructs the retry policy to handle a multiple exception types as transient.

Namespace:  Neon.Retry
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntax
public LinearRetryPolicy(
	Type[] exceptionTypes,
	int maxAttempts = 5,
	Nullable<TimeSpan> retryInterval = null,
	Nullable<TimeSpan> timeout = null,
	string sourceModule = null
)

Parameters

exceptionTypes
Type: SystemType
The exception type to be considered to be transient.
maxAttempts (Optional)
Type: SystemInt32
Optionally specifies the maximum number of times an action should be retried (defaults to 5).
retryInterval (Optional)
Type: SystemNullableTimeSpan
Optionally specifies the time interval between retry attempts (defaults to 1 second).
timeout (Optional)
Type: SystemNullableTimeSpan
Optionally specifies the maximum time the operation will be retried (defaults to unconstrained)
sourceModule (Optional)
Type: SystemString
Optionally enables transient error logging by identifying the source module (defaults to null).
See Also