Skip to main content

Class ActionRetryExtensionMethods

Namespace: Aurigma.DesignAtoms.Common​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public static class ActionRetryExtensionMethods

Inheritance: System.Object -> 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​

public static void InvokeWithRetries(this Action action, Action<Exception, int, int> onInvokeFailed = null, int[] delays = null)
Parameters​
TypeNameDescription
System.Actionaction
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​
TypeNameDescription
System.Func<<T>>func
System.Action<System.Exception,System.Int32,System.Int32>onInvokeFailed
System.Int32[]delays
Returns​

<T>

Was this page helpful?