Class RetryPolicy
Retry policy abstraction
Namespace: EPiServer.Data.Providers
Assembly: EPiServer.Data.dll
Version: 12.0.3Syntax
public abstract class RetryPolicy : Object
Constructors
RetryPolicy()
Declaration
protected RetryPolicy()
Properties
NoRetries
A policy that just executes without retry
Declaration
public static RetryPolicy NoRetries { get; }
Property Value
Type | Description |
---|---|
Retry |
Methods
Execute<TResult>(Func<TResult>)
Execute with retry
Declaration
public abstract TResult Execute<TResult>(Func<TResult> method)
Parameters
Type | Name | Description |
---|---|---|
System. |
method | The function to run |
Returns
Type | Description |
---|---|
TResult | The result |
Type Parameters
Name | Description |
---|---|
TResult | The type of the result that the function returns |
ExecuteAsync<TResult>(Func<Task<TResult>>)
Execute async with retry
Declaration
public abstract Task<TResult> ExecuteAsync<TResult>(Func<Task<TResult>> method)
Parameters
Type | Name | Description |
---|---|---|
System. |
method | The function to run |
Returns
Type | Description |
---|---|
System. |
The result |
Type Parameters
Name | Description |
---|---|
TResult | The type of the result that the function returns |