Class ActionRetryExtensionMethods
Namespace: Aurigma.DesignAtoms.Common
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class ActionRetryExtensionMethods
Inheritance: System.Object -> ActionRetryExtensionMethods
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
InvokeWithRetries
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<T>
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>