Class PollyRetryTemplate
Inheritance
System.Object
PollyRetryTemplate
Inherited Members
Steeltoe.Common.Retry.RetryTemplate.Execute<T>(Func<, >)
Steeltoe.Common.Retry.RetryTemplate.Execute<T>(Func<, >, Steeltoe.Common.Retry.IRecoveryCallback<T>)
Steeltoe.Common.Retry.RetryTemplate.Execute(Action<>)
Steeltoe.Common.Retry.RetryTemplate.Execute(Action<>, Steeltoe.Common.Retry.IRecoveryCallback)
Steeltoe.Common.Retry.RetryTemplate.Execute<T>(Func<, >, Func<, >)
Steeltoe.Common.Retry.RetryTemplate.Execute(Action<>, Action<>)
Assembly: Steeltoe.Common.RetryPolly.dll
Syntax
public class PollyRetryTemplate : RetryTemplate
Constructors
|
Edit this page
View Source
PollyRetryTemplate(Dictionary<Type, Boolean>, Int32, Boolean, Int32, Int32, Double, ILogger)
Declaration
public PollyRetryTemplate(Dictionary<Type, bool> retryableExceptions, int maxAttempts, bool defaultRetryable, int backOffInitialInterval, int backOffMaxInterval, double backOffMultiplier, ILogger logger = null)
Parameters
Type |
Name |
Description |
Dictionary<Type, System.Boolean> |
retryableExceptions |
|
System.Int32 |
maxAttempts |
|
System.Boolean |
defaultRetryable |
|
System.Int32 |
backOffInitialInterval |
|
System.Int32 |
backOffMaxInterval |
|
System.Double |
backOffMultiplier |
|
ILogger |
logger |
|
|
Edit this page
View Source
PollyRetryTemplate(Int32, Int32, Int32, Double, ILogger)
Declaration
public PollyRetryTemplate(int maxAttempts, int backOffInitialInterval, int backOffMaxInterval, double backOffMultiplier, ILogger logger = null)
Parameters
Type |
Name |
Description |
System.Int32 |
maxAttempts |
|
System.Int32 |
backOffInitialInterval |
|
System.Int32 |
backOffMaxInterval |
|
System.Double |
backOffMultiplier |
|
ILogger |
logger |
|
Methods
|
Edit this page
View Source
Execute(Action<IRetryContext>)
Declaration
public override void Execute(Action<IRetryContext> retryCallback)
Parameters
Type |
Name |
Description |
Action<IRetryContext> |
retryCallback |
|
|
Edit this page
View Source
Execute(Action<IRetryContext>, Action<IRetryContext>)
Declaration
public override void Execute(Action<IRetryContext> retryCallback, Action<IRetryContext> recoveryCallback)
Parameters
Type |
Name |
Description |
Action<IRetryContext> |
retryCallback |
|
Action<IRetryContext> |
recoveryCallback |
|
|
Edit this page
View Source
Execute(Action<IRetryContext>, IRecoveryCallback)
Declaration
public override void Execute(Action<IRetryContext> retryCallback, IRecoveryCallback recoveryCallback)
Parameters
Type |
Name |
Description |
Action<IRetryContext> |
retryCallback |
|
IRecoveryCallback |
recoveryCallback |
|
|
Edit this page
View Source
Execute<T>(Func<IRetryContext, T>)
Declaration
public override T Execute<T>(Func<IRetryContext, T> retryCallback)
Parameters
Type |
Name |
Description |
Func<IRetryContext, T> |
retryCallback |
|
Returns
Type Parameters
|
Edit this page
View Source
Execute<T>(Func<IRetryContext, T>, Func<IRetryContext, T>)
Declaration
public override T Execute<T>(Func<IRetryContext, T> retryCallback, Func<IRetryContext, T> recoveryCallback)
Parameters
Type |
Name |
Description |
Func<IRetryContext, T> |
retryCallback |
|
Func<IRetryContext, T> |
recoveryCallback |
|
Returns
Type Parameters
|
Edit this page
View Source
Execute<T>(Func<IRetryContext, T>, IRecoveryCallback<T>)
Declaration
public override T Execute<T>(Func<IRetryContext, T> retryCallback, IRecoveryCallback<T> recoveryCallback)
Parameters
Type |
Name |
Description |
Func<IRetryContext, T> |
retryCallback |
|
IRecoveryCallback<T> |
recoveryCallback |
|
Returns
Type Parameters
Implements