Class Tryer
Inheritance
System.Object
Tryer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Core.Helpers
Assembly:EvilDICOM.dll
Syntax
public class Tryer
Constructors
View SourceTryer()
Declaration
public Tryer()
Methods
View SourceTry(Action, Int32, Int32, Action<Exception>)
Declaration
public void Try(Action a, int maxTries = 3, int msDelayBtwTries = 5000, Action<Exception> failureAction = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | a | |
| System.Int32 | maxTries | |
| System.Int32 | msDelayBtwTries | |
| System.Action<System.Exception> | failureAction |
Try(Action, String)
Declaration
public static bool Try(Action a, string msg = "")
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | a | |
| System.String | msg |
Returns
| Type | Description |
|---|---|
| System.Boolean |