SaaS CMS has officially launched! Learn more now.

Class RetryPolicy

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
RetryPolicy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Data.Providers
Assembly: EPiServer.Data.dll
Version: 8.11.0
Syntax
public abstract class RetryPolicy

Constructors

RetryPolicy()

Declaration
protected RetryPolicy()

Properties

NoRetries

A policy that just executes whatever method

Declaration
public static RetryPolicy NoRetries { get; }
Property Value
Type Description
RetryPolicy

Methods

Execute<TResult>(Func<TResult>)

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public abstract TResult Execute<TResult>(Func<TResult> method)
Parameters
Type Name Description
System.Func<TResult> 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>>)

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public abstract Task<TResult> ExecuteAsync<TResult>(Func<Task<TResult>> method)
Parameters
Type Name Description
System.Func<System.Threading.Tasks.Task<TResult>> method
Returns
Type Description
System.Threading.Tasks.Task<TResult>
Type Parameters
Name Description
TResult

Extension Methods