---
title: "Class ActionRetryExtensionMethods | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common/ActionRetryExtensionMethods/"
---

# Class ActionRetryExtensionMethods

> **Inheritance:** `System.Object` -> ActionRetryExtensionMethods

###### **Namespace**: [Aurigma.DesignAtoms.Common](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public static class ActionRetryExtensionMethods
```

## 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`

## Methods

### InvokeWithRetries

```csharp
public static void InvokeWithRetries(this Action action, Action<Exception, int, int> onInvokeFailed = null, int[] delays = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Action` | *action* |  |
| `System.Action<System.Exception,System.Int32,System.Int32>` | *onInvokeFailed* |  |
| `System.Int32[]` | *delays* |  |

### InvokeWithRetry&lt;T&gt;

```csharp
public static T InvokeWithRetry<T>(this Func<T> func, Action<Exception, int, int> onInvokeFailed = null, int[] delays = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Func<<T>>` | *func* |  |
| `System.Action<System.Exception,System.Int32,System.Int32>` | *onInvokeFailed* |  |
| `System.Int32[]` | *delays* |  |

##### Returns

`<T>`
