Class SyncRetryPolicy<TException>
Class provides retry operation execution API.
Inheritance
System.Object
SyncRetryPolicy<TException>
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: Terrasoft.Sync
Assembly: Terrasoft.Sync.dll
Syntax
public class SyncRetryPolicy<TException>
where TException : Exception
Type Parameters
Name | Description |
---|---|
TException | When instance of TExeption cought, operation will be rerun. |
Methods
Execute(Int32, TimeSpan, Action)
Executes operation
in sequence. Retry when operation throws instance of TException.
Declaration
public void Execute(int retryCount, TimeSpan delay, Action operation)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retryCount | Max operation retry count. |
System.TimeSpan | delay | Delay between attempts. |
System.Action | operation | Syncronization operation. |